Jump to content

Animating shader offset values


Recommended Posts

Hi

Is there a way i can make the offset values of the choppy water shop follow a curve? I can make the water appear to flow in one direction but it would look a lot better if it would flow around corners; follow the river bends.

I had a go at using CHOP's for this but quickly got stuck :unsure:

any help is much appreciated

majic

Link to comment
Share on other sites

The shop "choppy water" is Worley noise based on P, or the attribute "rest", if it is bound. This means it doesn't care about the shape of your geometry.

However; you can probably "trick" it into caring by assigning some texture coordinates to your geometry, and then creating the vector-attribute "rest" for all its points. Then set the X and Y components of "rest" to your texture-U and texture-V components respectively, forcing its Z component to 0 (or any constant you like).

If your projection matches the contours of your geometry (and that's a very important if!), then the above setup will make the noise follow its curves.

Worth a try anyway ;)

Cheers!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...