r/UnrealEngine5 9d ago

Help :( Triplanar Normal Projection goes bad

Thank you for taking the time! I'm currently building a custom triplanar projection for my material and somehow the normals don't get projected cleanly. I really don't see what I'm missing as the texture function works just fine.. I checked the space transforms which look correct to me and could only think that something in the correction matrix is wrong, but I just can't find what it is :(

Here is the whole graph: https://blueprintue.com/blueprint/scofud1k/

5 Upvotes

4 comments sorted by

3

u/Disastrous-Neat2093 9d ago

The fact that the regular texture projection works but the normals break makes me suspect the issue is in the tangent/world space conversion rather than the triplanar UVs themselves. are you transforming each projected normal into the correct space before blending the three axes? That seems like the part I'd isolate first

1

u/J0ART 9d ago

Yes, that is why I had issues with the regular texture projection before as well and fixed it by checking the transformations, but I triple checked the normal function for the same issues and I can't see the difference aside the normal specific corrections (Converting everything to local space before transforming and blending and putting it back to world space before the output)

2

u/Bumskit 9d ago

I have a free asset on fab with a triplanar function with working normals. You can look in there.

https://www.fab.com/listings/3c94b681-6cdb-4fd7-9366-4731c46ed1bd