# Gradient does not move in my custom mesh?

**URL:** <https://forums.unrealengine.com/t/gradient-does-not-move-in-my-custom-mesh/679706>\
**Category:** Rendering\
**Tags:** Color-Grading, unreal-engine, UE5-0, Rendering, question\
**Created:** [October 29, 2022, 6:37pm UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-my-custom-mesh/679706 "2022-10-29T18:37:40Z")\
**Posts on this page:** 9\
**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:** [October 29, 2022, 6:37pm UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-my-custom-mesh/679706/1 "2022-10-29T18:37:40Z")

</div>

First off, I’d like to credit @Astrotronic and especially @Suthriel for their helpful answers regarding [implementing gradient in this question](https://forums.unrealengine.com/t/make-glowing-colors-flow-from-one-end-of-face-to-other-end/676927/8).

That said, I noticed that the gradient does not flow in a custom object I made, as opposed to the default object:  
1)

 ![269913456_884999738804740_8799228876221324084_.jp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/5/5/e551ae651e969f124bab4f0fb65022a0a1eb82ec.jpeg)

1. 

 ![269913456_884999738804740_8799228876221324084_n.jp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/7/887feea1e2aac589cb9e4209f91ce91f0e21d033.jpeg)

Here is the gradient, as @Suthriel taught me how to do so:

 ![269913456_884999738804740_8799228876221324084_n](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/4/a/74a865a383714e2a29c182df15d0b44cce28ce9f.jpeg)

Why isn’t the gradient moving across the custom built rectangular mesh, but only along the default quartercircle mesh? I would like the gradient to move like the my custom mesh in the same way. Thanks

---

<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:** [October 29, 2022, 6:39pm UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-my-custom-mesh/679706/2 "2022-10-29T18:39:07Z")

</div>

Sounds like a UV problem, can you show the UVs of the custom mesh?

---

<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:** [October 29, 2022, 6:42pm UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-my-custom-mesh/679706/3 "2022-10-29T18:42:25Z")

</div>

When I built this in blender, I didn’t do any UV mapping of this.

---

<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:** [October 29, 2022, 6:43pm UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-my-custom-mesh/679706/4 "2022-10-29T18:43:17Z")

</div>

That’s the problem then. If you look at the UVs on the other mesh, it’s evenly populated with the UV grid. I assume your custom mesh does not have that.

Just try a cube projection, and then re-import.

---

<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:** [October 29, 2022, 6:49pm UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-my-custom-mesh/679706/5 "2022-10-29T18:49:29Z")

</div>

Ok. What do you mean, 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:** [October 29, 2022, 6:54pm UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-my-custom-mesh/679706/6 "2022-10-29T18:54:24Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/b/4/8b437a237e83679734a8cc750e1aa7d2f74076fa.jpeg)

---

<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:** [October 29, 2022, 6:57pm UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-my-custom-mesh/679706/7 "2022-10-29T18:57:42Z")

</div>

Thanks, this was helpful, I’ll try 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:** [October 31, 2022, 8:40am UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-my-custom-mesh/679706/8 "2022-10-31T08:40:30Z")

</div>

I did try a UV mapping, but the gradient flow was misaligned. The top part flowed forward, and the rest, backwards.

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/a/58ad1b749ab3d60e9361e3f62fd842e31c42fd28.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/a/58ad1b749ab3d60e9361e3f62fd842e31c42fd28.mp4)

How do I get the gradient to flow in a single direction, like the default quartercircle? How do I UV map to achieve this? This is the current UV map:

 ![2865637091760882764273723_3135213123526564639_n](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/7/2/6723de454fcf1f08a207f032693d9d8d869b1075.jpeg)  
 ![286563709_1760882764273723_315213123526564639_n](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/4/534cdfc55741fa9fb34761fbaf48f1302376cc68.jpeg)

---

<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:** [October 31, 2022, 8:42am UTC](https://forums.unrealengine.com/t/gradient-does-not-move-in-my-custom-mesh/679706/9 "2022-10-31T08:42:31Z")

</div>

Ok, then you need to get better at UVs 😉

That’s how you tell it how to move the material.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/8/8/0883e98320cba012633a7cdb0dcf2666a34c6cf5.jpeg "Intro to Blender UV Mapping") ](https://www.youtube.com/watch?v=GTd8NBg8EZU)
