# Gradient does not move in sync in my custom meshes?

**URL:** <https://forums.unrealengine.com/t/gradient-does-not-move-in-sync-in-my-custom-meshes/685203>\
**Category:** Rendering\
**Tags:** dynamic-lighting, unreal-engine, Rendering\
**Created:** [November 6, 2022, 3:55pm UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-sync-in-my-custom-meshes/685203 "2022-11-06T15:55:17Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![FrancisMikeNat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FrancisMikeNat](https://forums.unrealengine.com/u/FrancisMikeNat)\
**Post date:** [November 6, 2022, 3:55pm UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-sync-in-my-custom-meshes/685203/1 "2022-11-06T15:55:17Z")

</div>

This lower gradient extends out far more than its top counterpart. I need it to move in sync with the gradient above it, so both travel at same speed and time:

![LpaJbPa8T3a63mkPm9O8fsodyUEMHYZwMXc6fJ6OB4X6fZ_P2mRDNN-9KxW-VwED-KKeZKhCFNx8gXktaZHxM_L9d8VHtToKrNoClj6nsAsZ45iZ4fcF_ya9gV5sItqXeOwsMRQKQvfRng](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/f/0/2f0ff237a33781c48db45b3e6b80b352e7a6fddd.jpeg)

And I need this second gradient to flow together with the gradient above it, so the entire rectangle is filled with the gradient:

![channels4_profile](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/0/a80819d73c2eff33cdd3aa7dbceb8869f304548b.jpeg)

I’m basically trying to copy these moving glowing circuits, like [here](https://www.youtube.com/watch?v=bVT1lWwzz1o), from 0:00-0:02.

 ![Yamato-Aime-Infobox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/9/3c9218da4aab1e23b07ed8bea68900d6ebfa6649.jpeg)  
 ![Yamato-Aime-Infobox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/d/3fd031a742726c3b28f9377a5f1a7cb13b144253.png)  
 ![Yamato-Aime-Infobox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/7/e/67e590b43d83e361973350b36ca75419655c90a6.png)

What is my mistake? How do I get the gradients in the square marks to move together and at the same speed and length?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 6, 2022, 4:01pm UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-sync-in-my-custom-meshes/685203/2 "2022-11-06T16:01:49Z")

</div>

It the same problem it was before 🙂

The UVs are not the same on both meshes.

One way around this whole problem, is to use a world aligned material

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/a/d/3ad00a5f64764e45a2fbac5e4e3be4416e46b0e8.jpeg "[Unreal Engine] - World Aligned Texture") ](https://www.youtube.com/watch?v=BMbV4I4acaQ)

---

<div class="post-metadata">

**Author:** ![FrancisMikeNat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FrancisMikeNat](https://forums.unrealengine.com/u/FrancisMikeNat)\
**Post date:** [November 7, 2022, 5:54am UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-sync-in-my-custom-meshes/685203/3 "2022-11-07T05:54:59Z")

</div>

Unfortunately, it only works for textures, not material.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 7, 2022, 7:07am UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-sync-in-my-custom-meshes/685203/4 "2022-11-07T07:07:41Z")

</div>

I know for a fact that it will work for you. Textures are part of a material.

If you want to have the same circuitry aligned on these objects, this is the way.

If you don’t believe me, upload some of your shapes here as FBX, and I’ll show you… 🙂

---

<div class="post-metadata">

**Author:** ![FrancisMikeNat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FrancisMikeNat](https://forums.unrealengine.com/u/FrancisMikeNat)\
**Post date:** [November 7, 2022, 12:10pm UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-sync-in-my-custom-meshes/685203/5 "2022-11-07T12:10:55Z")

</div>

[xfloorstandard.167.fbxfloorstandard.166.fbx](https://forums.unrealengine.com/uploads/short-url/kGQSkpMe2z4CLXWpYRdRxvvXzBy.fbx) (19.4 KB)  
[yfloorstandard.167.fbx](https://forums.unrealengine.com/uploads/short-url/Bpr3nFKyWOTR9wNVOuwivDXGj8.fbx) (21.6 KB)  
[zfloorstandard.279.fbx](https://forums.unrealengine.com/uploads/short-url/l6e1gPlWqE1HxcSie6dsuhhVVen.fbx) (19.9 KB)

Here they are. Believe me, I’m not trying to be spoonfed, I’m new to UE5, thus I need all the help I can get

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 7, 2022, 12:15pm UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-sync-in-my-custom-meshes/685203/6 "2022-11-07T12:15:33Z")

</div>

I will get back a bit later…

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 7, 2022, 12:26pm UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-sync-in-my-custom-meshes/685203/7 "2022-11-07T12:26:50Z")

</div>

Do you mean, you want them to apparently share the same material, like this?

![world mat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/4/3/94309058b164cf4204b9e7aa57bbefd439bf259a.gif)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 7, 2022, 12:37pm UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-sync-in-my-custom-meshes/685203/8 "2022-11-07T12:37:22Z")

</div>

Ah, I’m with you.

You want the lines to be the same size, and move at the same rate?

Then you either need to sort out the UVs, or you can use a world aligned material 🙂

You can see, your UVs are shot

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/e/77e71ca5e56d944611b60cbe36f38279f76f4bc7.jpeg)

They’re supposed to be a nice grid shape.

I just pulled it into Blender and gave it a cube projection ( like I said )

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/4/e/a4e6f1e60c2ed815c6c7ee46febb0933193f3c4c.jpeg)

After fixing the UVs and applying a simple material

![fixed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/5/f/b5ff5df5abb2f4057c20a66c9c0f2acd77eed8f9.gif)

---

<div class="post-metadata">

**Author:** ![FrancisMikeNat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FrancisMikeNat](https://forums.unrealengine.com/u/FrancisMikeNat)\
**Post date:** [November 7, 2022, 2:22pm UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-sync-in-my-custom-meshes/685203/9 "2022-11-07T14:22:02Z")

</div>

Thanks for the answer. How did you specifically do that cube projection? So this cube projection basically fixes the UVs thus enabling this gradient material you used for demonstration, right?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 7, 2022, 2:29pm UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-sync-in-my-custom-meshes/685203/10 "2022-11-07T14:29:49Z")

</div>

> [@FrancisMikeNat](#):
>
> So this cube projection basically fixes the UVs thus enabling this gradient material you used for demonstration, right?

Correctemo. But to be clear, why I was talking about world aligned materials, is because you can use them without UVs… But ( again ), it’s easier to use normal materials…

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/f/1/1f16aac1865ec9710d5bc0999698ffd0ea0e074a.png)

before

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/4/e/34eb7a03c12791901c742a95a206024ba68c62a5.jpeg)

after

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/5/0c57cae8daf8a7c2551abbbd51a7e6c92bbc1b70.jpeg)

( the other meshes were worse ).

---

<div class="post-metadata">

**Author:** ![FrancisMikeNat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FrancisMikeNat](https://forums.unrealengine.com/u/FrancisMikeNat)\
**Post date:** [November 7, 2022, 2:36pm UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-sync-in-my-custom-meshes/685203/11 "2022-11-07T14:36:47Z")

</div>

Thanks, I’ll apply this.

---

<div class="post-metadata">

**Author:** ![FrancisMikeNat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FrancisMikeNat](https://forums.unrealengine.com/u/FrancisMikeNat)\
**Post date:** [November 7, 2022, 3:16pm UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-sync-in-my-custom-meshes/685203/12 "2022-11-07T15:16:33Z")

</div>

Oh yes, is this world aligned materials effect? The checkered effect applied to this object

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/5/0c57cae8daf8a7c2551abbbd51a7e6c92bbc1b70.jpeg)

I mean, what view did you choose to see this? Sorry

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 7, 2022, 4:36pm UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-sync-in-my-custom-meshes/685203/13 "2022-11-07T16:36:42Z")

</div>

Set to default material in the static mesh editor.

This is not world aligned.

---

<div class="post-metadata">

**Author:** ![FrancisMikeNat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FrancisMikeNat](https://forums.unrealengine.com/u/FrancisMikeNat)\
**Post date:** [November 7, 2022, 4:42pm UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-sync-in-my-custom-meshes/685203/14 "2022-11-07T16:42:07Z")

</div>

Thanks. Do you still recommend world aligned texture, despite the cube projection?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 7, 2022, 4:45pm UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-sync-in-my-custom-meshes/685203/15 "2022-11-07T16:45:00Z")

</div>

They are separate things. If you use world aligned, you don’t need UVs.

You’ll find if you use WA, it’s always really easy to align meshes, because it doesn’t actually matter where you put them…

---

<div class="post-metadata">

**Author:** ![FrancisMikeNat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FrancisMikeNat](https://forums.unrealengine.com/u/FrancisMikeNat)\
**Post date:** [November 7, 2022, 4:50pm UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-sync-in-my-custom-meshes/685203/16 "2022-11-07T16:50:34Z")

</div>

Thanks. Helpful answers, especially the cube projection function, which was a major help
