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:
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
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.