Jump to content
  • Advertisement
Sign in to follow this  
wforl

Tangent, Bi-Normal and Normal

This topic is 3407 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Are the Tangent and Bi-Normal always computed whilst the mesh files are loaded? Do any games uses files with with Tangent and Bi-Normals computed ahead of time and stored in the file format? i gather that the Bi-Normal is usually computed in the shader using the cross product. But surely its faster to have all these items stored. Or is this due to the fact that they need to be interpolated in the pixel shader anyway?

Share this post


Link to post
Share on other sites
Advertisement
There are any number of ways you can do it. You can store two and calculate the third, or store all three. You can then interpolate all of them in the shader, or only interpolate two and do a cross product to get the third. It's really up to you and where your bottlenecks are. It might not even be worth worrying about all all :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!