# Niagara GetTriangleCoordAtUV faulty for StaticMeshes

**URL:** <https://forums.unrealengine.com/t/niagara-gettrianglecoordatuv-faulty-for-staticmeshes/1356755>\
**Category:** FX\
**Tags:** unreal-engine, Rendering, question\
**Created:** [November 1, 2023, 11:33pm UTC](https://forums.unrealengine.com/t/niagara-gettrianglecoordatuv-faulty-for-staticmeshes/1356755 "2023-11-01T23:33:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wzl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wzl](https://forums.unrealengine.com/u/wzl)\
**Post date:** [November 1, 2023, 11:33pm UTC](https://forums.unrealengine.com/t/niagara-gettrianglecoordatuv-faulty-for-staticmeshes/1356755/1 "2023-11-01T23:33:26Z")

</div>

I’ve set up two Niagara systems. One for Skeletal meshes and one for Static meshes. Functionally they are (supposed to be) the same, but there are some differences:

I’m using a Grid2D simulation stage and call `GetTriangleCoordAtUV` to fill the grid data with information. This both works fine for position data. However with Normals there is something curious happening:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/a/90ab9c6681c5606fb2f3254a0e345f9ea17ad1cb.png)

On the left is the skeletal mesh, looks as expected. On the right is the static mesh. It looks like one vertex of each triangle has no valid normal, and it is just black

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/a/1/6a1946dcc74aa1febf9d211249aec78025fcaecd.jpeg)

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

To make sure this is a problem with static meshes i’ve exported the fbx of the material preview mesh and imported it as skeletal mesh, which works as expected.

In order to get `GetTriangleCoordAtUV` to work with static meshes, i found that you are required to call `BuildUvMapping` in advance. Is there something else that needs to be set up?

As a side note: sampling the static mesh this way looks to be way more expensive than skeletal meshes. Odd that.
