# Major bug in normalization / dot product material nodes

**URL:** <https://forums.unrealengine.com/t/major-bug-in-normalization-dot-product-material-nodes/355780>\
**Category:** Rendering\
**Tags:** unreal-engine, UE4, question\
**Created:** [April 28, 2016, 2:13pm UTC](https://forums.unrealengine.com/t/major-bug-in-normalization-dot-product-material-nodes/355780 "2016-04-28T14:13:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chronosheep](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chronosheep](https://forums.unrealengine.com/u/Chronosheep)\
**Post date:** [April 28, 2016, 2:13pm UTC](https://forums.unrealengine.com/t/major-bug-in-normalization-dot-product-material-nodes/355780/1 "2016-04-28T14:13:36Z")

</div>

I discovered today that the normalize and dot product nodes in the material editor, in certain combinations, give incorrect outputs.

In the screenshot below, I show dot products of unit vectors in different combinations, with and without being passed through the normalize node. In most cases the result is 1.0, as expected, but in one of the examples, it is not.

 ![88738-broken.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/b/d/8bda59711b8bc5ca2890bd0be04056fefb4f23d1.png)

In the screenshot below, I calculate the length of a unit vector before and after normalization, both manually and using the dot product node. After the normalize node, the dot product node gives a different result than manual calculation.

 ![88741-broken2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/2/2120de4c008a6d338839a135df0f4b7e0231eb56.png)

---

<div class="post-metadata">

**Author:** ![Chronosheep](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chronosheep](https://forums.unrealengine.com/u/Chronosheep)\
**Post date:** [May 12, 2016, 6:10pm UTC](https://forums.unrealengine.com/t/major-bug-in-normalization-dot-product-material-nodes/355780/2 "2016-05-12T18:10:30Z")

</div>

Is this issue being looked into?

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [May 17, 2016, 6:17pm UTC](https://forums.unrealengine.com/t/major-bug-in-normalization-dot-product-material-nodes/355780/3 "2016-05-17T18:17:52Z")

</div>

Hi Chronosheep,

I’ve entered UE-30897 for this to be tracked.

Thank you!

Tim

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [May 19, 2016, 5:57pm UTC](https://forums.unrealengine.com/t/major-bug-in-normalization-dot-product-material-nodes/355780/4 "2016-05-19T17:57:35Z")

</div>

This has been verified fixed in 4.12 Preview 4. You can grab this from the Epic Games Launcher to test for yourself if you’d like.
