# Recreating cube wave effect

**URL:** <https://forums.unrealengine.com/t/recreating-cube-wave-effect/548406>\
**Category:** Asset Creation\
**Tags:** UE5-0, question\
**Created:** [May 4, 2022, 8:35am UTC](https://forums.unrealengine.com/t/recreating-cube-wave-effect/548406 "2022-05-04T08:35:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![XxWhtlotusxX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XxWhtlotusxX](https://forums.unrealengine.com/u/XxWhtlotusxX)\
**Post date:** [May 4, 2022, 8:35am UTC](https://forums.unrealengine.com/t/recreating-cube-wave-effect/548406/1 "2022-05-04T08:35:09Z")

</div>

Hi everyone!

I’m still pretty new to unreal engine materials and just unreal engine in general.

I am trying to recreate this effect

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/d/25d5b9383083c3f9290c39eb9f0cf0d1924344fe.mov](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/d/25d5b9383083c3f9290c39eb9f0cf0d1924344fe.mov)

i’ve tried several things, all using the sin node, time node, and absolute world position node, but cant seem to get it working.

Could I possibly get some help?

---

<div class="post-metadata">

**Author:** ![XxWhtlotusxX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XxWhtlotusxX](https://forums.unrealengine.com/u/XxWhtlotusxX)\
**Post date:** [May 5, 2022, 1:33am UTC](https://forums.unrealengine.com/t/recreating-cube-wave-effect/548406/2 "2022-05-05T01:33:51Z")

</div>

Bump

edit: rebump, budump

---

<div class="post-metadata">

**Author:** ![Muscle\_Kay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Muscle\_Kay](https://forums.unrealengine.com/u/Muscle_Kay)\
**Post date:** [May 7, 2022, 1:46am UTC](https://forums.unrealengine.com/t/recreating-cube-wave-effect/548406/3 "2022-05-07T01:46:44Z")

</div>

Hello! These might help you

> [@Vertex Animation Script for Blender 3D Users](https://forums.unrealengine.com/t/vertex-animation-script-for-blender-3d-users/85580):
>
> If you’ve been waiting for a Blender version of the Vertex Animation max script you’ve come to the right place! I’ve recently been working on one, and have a pretty solid version. As of now the script only has the timeline animation functionality, but I plan to remedy that soon. I’m new to scripting so I’m sure it’s not very pythonic or elegant, but it works. In fact this is my first attempt at creating anything remotely complex. I’m assuming anyone coming here knows how to install or use script…

and this

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/3/2335c62f4a3635d59d1d0854b44a69368f81addb.jpeg "UE4 - Tutorial - Vertex Animation (3DS Max to Unreal Material)") ](https://www.youtube.com/watch?v=6Cain-u9_g4&t=1s)

---

<div class="post-metadata">

**Author:** ![XxWhtlotusxX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XxWhtlotusxX](https://forums.unrealengine.com/u/XxWhtlotusxX)\
**Post date:** [May 7, 2022, 2:12am UTC](https://forums.unrealengine.com/t/recreating-cube-wave-effect/548406/4 "2022-05-07T02:12:46Z")

</div>

I’ve seen and tried this already. It doesn’t work for what I need. Specifically, you can’t export shape keys as key frames, which is what the wave modifier uses. It will only export shape keys as a skeletal mesh and I don’t want that. I want to do all the vertex animation in the material.

Thank you for the response 😌

---

<div class="post-metadata">

**Author:** ![Josh\_Bogart](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Josh\_Bogart](https://forums.unrealengine.com/u/Josh_Bogart)\
**Post date:** [March 8, 2023, 5:44am UTC](https://forums.unrealengine.com/t/recreating-cube-wave-effect/548406/5 "2023-03-08T05:44:14Z")

</div>

While you could use the Mesh Morpher script to get something similar. I think the interpolation would be very evident. The Vertex Animation script could also be used and would yield an identical result to the video shown, but it would be overkill. You can easily get this effect using Unreal Engine’s material nodes out of the box.

- You take the absolute world position, mask out the Y and Z axes separately.
- Subtract Time from the Y axis mask.
- Take the sin of the result, you can multiply before this to affect frequency (try 2\*pi).
- You can then multiply the result to affect amplitude.
- Mask this result to the Z axis now.
- Next add this result to the Z axis mask.
- Use this result as your material’s world position offset.

I’m fairly certain this checks out, but I actually don’t have unreal on this machine. I just came up with this result using blenders geometry nodes, but the same concepts should apply. Also blender’s wave modifier has some extra parameters which you could almost certainly get similar results just using more math before and after the sin.

 ![Untitled](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/3/3/733cfcc3702a4dacdb111cb2602a0591846f9c68.png)

Also, this is a great resource providing an example of a material using world position offset. It’s an oldie, but certainly a goodie.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/6/c/46c81509681ce59bb9e37440021e78d79301a7ed.jpeg "Mesh Displacement & Material Editor | Live Training | Unreal Engine") ](https://www.youtube.com/watch?v=oPLQOViA8CA)
