# Custom rotator for Normals?

**URL:** <https://forums.unrealengine.com/t/custom-rotator-for-normals/484083>\
**Category:** Rendering\
**Tags:** normals, normal, unreal-engine, Instanced-Mesh, question\
**Created:** [May 29, 2021, 7:42am UTC](https://forums.unrealengine.com/t/custom-rotator-for-normals/484083 "2021-05-29T07:42:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DDemon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DDemon](https://forums.unrealengine.com/u/DDemon)\
**Post date:** [May 29, 2021, 7:42am UTC](https://forums.unrealengine.com/t/custom-rotator-for-normals/484083/1 "2021-05-29T07:42:45Z")

</div>

I am trying to rotate my normals with a Custom Rotator for my dynamical Instance static meshes (I have a function that gives the desired angle of rotation to them) but they come out wrong as if the engine adds another direction to the normals. I looked online and found few solutions but they don’t work for me as I work in Local Space because of the instances and they work in world space.

Luos World Aligned Texture/Normal for example and I can’t change it to local space as everything goes weird, if someone has a solution please do tell me. I did read that Rotate About Axis can do the trick too but it just doesn’t work for me, give me an example of how to rotate a texture with it I will appreciate it.

---

<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:** [May 29, 2021, 9:13am UTC](https://forums.unrealengine.com/t/custom-rotator-for-normals/484083/2 "2021-05-29T09:13:11Z")

</div>

Did you try switching between world / local using InverseTransformRotation nodes?

It’s maybe a long shot, but there’s also this great vid on recalculating normals:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/d/a/3da2ac34edffcb0b49af7db29b5ffb5ebf448c98.jpeg "Calculating Normals in the Shader") ](https://www.youtube.com/watch?v=80vOtsNg-9g)

---

<div class="post-metadata">

**Author:** ![Luos](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/luos/32/918700_2.png) [@Luos](https://forums.unrealengine.com/u/Luos)\
**Post date:** [May 29, 2021, 11:40am UTC](https://forums.unrealengine.com/t/custom-rotator-for-normals/484083/3 "2021-05-29T11:40:10Z")

</div>

not 100% sure if I got your question right, but try this:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/4/9/a49871ae7e14d09eb1a5efe08d09f663930b70ab.jpeg)

---

<div class="post-metadata">

**Author:** ![DDemon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DDemon](https://forums.unrealengine.com/u/DDemon)\
**Post date:** [May 29, 2021, 12:43pm UTC](https://forums.unrealengine.com/t/custom-rotator-for-normals/484083/4 "2021-05-29T12:43:56Z")

</div>

I wrote almost this exact code before and it didn’t work but now it does… Life is strange… Thanks.
