reepblue Posted April 1, 2021 Share Posted April 1, 2021 I'm interested in seeing how I can improve my cyclone placement code and I was wondering if there was a way to obtain the Tangent and Bi-Normal of a surface from a world pick raytrace. The surface class only has the normal vector and the only thing I see regarding this is the vertex class which can be obtained by the surfaces vector array. This is right now a curiosity than a must have. My placement code works 90% of the time, but I was sharing ideas how this can be improved in a discord channel and this came up. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Josh Posted April 1, 2021 Share Posted April 1, 2021 There is some code here somewhere to calculate the texture coordinate at a picked location. The same code will work to interpolate binormals / tangents. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.