Author Topic: Local coordinates Position map.  (Read 162 times)

Hi. We need a texture with baked local mesh coordinates on its UV to get one effect In a project on Unreal Engine 4. We generate it using the Position map in Substance Painter. Substance transfers local coordinates into the range of values supported by the texture (if it's 8 bits per channel, transfers into the range [0; 255], if it's 16 bits, then transfers into the range [0; 65535] and stretching them to the entire available range). How do we get the correct local coordinates of the mesh directly in the UE4 engine from the generated texture?

multiply it by the object's bbox size.

And how to find out its size?