• Advertisement
Sign in to follow this  

Animate texture coordinates along world space direction

This topic is 2371 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi guys, I need an advice on this one. I'm trying to scroll a texture that scrolls from up to down in world space, no matter how the object is oriented. Let me give you a more proper example. Let's say I have a box. I need to animate the bump/specular texture on it's surface to make it appear like a wet surface. I can pretty much achieve that, but the problem is I don't know how to animate the texture coordinates according to the box orientation, so the water always looks like it's flowing from upstream down.If the triangle face is vertical, the water should flow faster, a horizontal ground face should get almost zero "water flow animation" I have a world space normal buffer already rendered, so I think I can skip the faces wich normal point downwards. I other words, how can I achieve something like this : Wet surfaces - Unreal engine used.
[media]http://www.youtube.com/watch?v=qosK4I32LMg#t=1m53s[/media]

Share this post


Link to post
Share on other sites
Advertisement
Your tangent frame tells you the object-space direction in which your U and V are increasing. So if you convert your tangent frame to world-space, you know the world-space direction in which they increase.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement