# UV animation, ocean waves

**URL:** <https://forums.unrealengine.com/t/uv-animation-ocean-waves/400212>\
**Category:** Rendering\
**Tags:** panner, uv, unreal-engine, question\
**Created:** [July 16, 2017, 1:00pm UTC](https://forums.unrealengine.com/t/uv-animation-ocean-waves/400212 "2017-07-16T13:00:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tonzy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tonzy](https://forums.unrealengine.com/u/Tonzy)\
**Post date:** [July 16, 2017, 1:00pm UTC](https://forums.unrealengine.com/t/uv-animation-ocean-waves/400212/1 "2017-07-16T13:00:00Z")

</div>

Hello guys, I’m trying to animate uv, but with different speed and direction, I’ve tried with panner but I did’t found a way to change speed and direction, I was thinking if there is a way to animate the vector parameter for its speed from 0.1 to -0.1 for example and loop it.

Here is a video that I’ve made In 3dsmax to show you what I’m looking for :

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/5/935b17ee1fa639caf13413d51dfe66a0427c0e4a.jpeg "waves 01") ](https://www.youtube.com/watch?v=M-RKMOj6Rxc)

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Raildex](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Raildex](https://forums.unrealengine.com/u/Raildex)\
**Post date:** [July 16, 2017, 6:32pm UTC](https://forums.unrealengine.com/t/uv-animation-ocean-waves/400212/2 "2017-07-16T18:32:58Z")

</div>

Sine is the way to go if you want to animate in a oscillating way.  
Sine oscillates between -1 and 1, compensate this by multiplying sine with 0.5 and add 0.5 to the result.  
Now you have a sine between 0 and 1.

Use this Value as an Alpha in a Lerp/LinearInterpolate Node.

The A and B input of the Lerp Node are your UV Coordinates. The First Input is the Start UV, the B input is the second UV (a shifted UV for example)

 ![202464-unbenannt.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/f/7/1f76430f85c16db9cffe03d25bc58ebab0647c7f.jpeg)

---

<div class="post-metadata">

**Author:** ![Tonzy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tonzy](https://forums.unrealengine.com/u/Tonzy)\
**Post date:** [July 16, 2017, 7:07pm UTC](https://forums.unrealengine.com/t/uv-animation-ocean-waves/400212/3 "2017-07-16T19:07:06Z")

</div>

Thanks for the fast respond man! I think this is exactly what I was looking for. You are amazing !

---

<div class="post-metadata">

**Author:** ![Raildex](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Raildex](https://forums.unrealengine.com/u/Raildex)\
**Post date:** [July 16, 2017, 8:27pm UTC](https://forums.unrealengine.com/t/uv-animation-ocean-waves/400212/4 "2017-07-16T20:27:35Z")

</div>

Don’t forget to upvote and mark the answer as solved 🙂
