# DistanceToNearestSurface/material node calculations have different outputs on different machines, HELP!

**URL:** <https://forums.unrealengine.com/t/distancetonearestsurface-material-node-calculations-have-different-outputs-on-different-machines-help/212005>\
**Category:** FX\
**Tags:** unreal-engine\
**Created:** [April 8, 2021, 2:56pm UTC](https://forums.unrealengine.com/t/distancetonearestsurface-material-node-calculations-have-different-outputs-on-different-machines-help/212005 "2021-04-08T14:56:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NosferatuPrince](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NosferatuPrince](https://forums.unrealengine.com/u/NosferatuPrince)\
**Post date:** [April 8, 2021, 2:56pm UTC](https://forums.unrealengine.com/t/distancetonearestsurface-material-node-calculations-have-different-outputs-on-different-machines-help/212005/1 "2021-04-08T14:56:52Z")

</div>

I have a material I’m using on a landscape, and I want to use DistanceToNearestSurface to increase the height of the landscape material when it’s close to other meshes in the scene. I’m having some trouble with blending the DistanceToNearestSurface into nice spread out gradients, following this tutorial [Building advanced effects in Niagara | Unreal Engine](https://youtu.be/syVSRDQxrZU), and I should be able to just subtract and then divide it to smooth. It works checking the output in base colour, but using it for height makes it completely flat but the raw DistanceToNearestSurface input works.  
I asked my professor for help, and it looks like it’s just not an issue for him on his machine, (his base colour and height are smoothly blended) even using the same engine version. He sent his working version to me, but it looks completely different. Could it be a plugin issue? Any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![NosferatuPrince](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NosferatuPrince](https://forums.unrealengine.com/u/NosferatuPrince)\
**Post date:** [April 8, 2021, 3:13pm UTC](https://forums.unrealengine.com/t/distancetonearestsurface-material-node-calculations-have-different-outputs-on-different-machines-help/212005/2 "2021-04-08T15:13:36Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/b/ab97c4a36d009d2bb9559555fb29a387cce556cc.jpeg) ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/0/f03194eb161fbc1a4afc104c1676e7ef94e1781f.jpeg)

Here’s a comparison of one of the differences, mine is very jagged when it should be smooth

---

<div class="post-metadata">

**Author:** ![NosferatuPrince](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NosferatuPrince](https://forums.unrealengine.com/u/NosferatuPrince)\
**Post date:** [April 8, 2021, 4:04pm UTC](https://forums.unrealengine.com/t/distancetonearestsurface-material-node-calculations-have-different-outputs-on-different-machines-help/212005/3 "2021-04-08T16:04:35Z")

</div>

I think it’s fixed, by turning off generate distance fields on the landscape actor.
