New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Animated Wave Node #1698

Closed
hellocatfood opened this Issue Nov 21, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@hellocatfood

hellocatfood commented Nov 21, 2017

As described here https://forum.natron.fr/t/animated-wavy-text/1887 it is not possible to animate the wave node without having to move the input text/image or changing the amplitude or length of the wave.

Could it be possible to animate the wave without having to change these settings? It could borrow concepts from Blender's Wave Modfier, where the animating of the wave is automatic and the user specifies the height/width/length of the wave

screenshot from 2017-11-21 13-41-49

@devernay

This comment has been minimized.

Show comment
Hide comment
@devernay

devernay Nov 21, 2017

Collaborator

The Wave plugin uses that function of ImageMagick: http://www.imagemagick.org/Usage/warping/#wave

And, unfortunately,
Basically the "-wave" operator does not (at this time) allow you to specify an offset for the start of the sine function. This can be rectified however by adding, then removing, an image offset using "-splice".

The solution I have involves an SeExpr node with the following RGB script:

cpixel(1,frame,x,y+x2*sy*sin(2*3.1416*(x/sx - x3)/x1),2)

set the number of scalar params to 3.
x1 is the wavelenth
x2 is the amplitude
x3 is the phase shift in pixels (which is missing from the Wave plugin)

Collaborator

devernay commented Nov 21, 2017

The Wave plugin uses that function of ImageMagick: http://www.imagemagick.org/Usage/warping/#wave

And, unfortunately,
Basically the "-wave" operator does not (at this time) allow you to specify an offset for the start of the sine function. This can be rectified however by adding, then removing, an image offset using "-splice".

The solution I have involves an SeExpr node with the following RGB script:

cpixel(1,frame,x,y+x2*sy*sin(2*3.1416*(x/sx - x3)/x1),2)

set the number of scalar params to 3.
x1 is the wavelenth
x2 is the amplitude
x3 is the phase shift in pixels (which is missing from the Wave plugin)

@devernay devernay closed this Nov 21, 2017

devernay added a commit to MrKepzie/openfx-io that referenced this issue Nov 21, 2017

@hellocatfood

This comment has been minimized.

Show comment
Hide comment
@hellocatfood

hellocatfood Nov 21, 2017

Thanks. It's a shame this can't be in the Wave node but your work around works.

I also had to copy it to the Alpha Script to get an alpha channel

hellocatfood commented Nov 21, 2017

Thanks. It's a shame this can't be in the Wave node but your work around works.

I also had to copy it to the Alpha Script to get an alpha channel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment