Jump to content
  • Advertisement
Sign in to follow this  
sunrisefe

Tangent space

This topic is 3102 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

Is tangent space transformed while world matrix changed? For example, vertex structure is with position and texture coordinate,a polygon is constituted by four verticls. vertexStruct { D3DXVECTOR4 pos; D3DXVECTOR2 tex; }; vertexStruct polygon[4]= { {-1,-1,0,1, 0,0}, { 1,-1,0,1, 0,1}, { 1, 1,0,1, 1,1}, {-1, 1,0,1, 1,0}, }; what's the tangent, binormal, normal are? When the polygon is transformed by rotation matrix Tr and translate matrix Tt, what will the tangent, binormal, normal be? Thank you very much.

Share this post


Link to post
Share on other sites
Advertisement
if the vertices are transformed by a modelview matrix M, then the normals, bitangent and tangents must be transformed by the inverse transpose of the upper left (3x3) part of M, often referred to as the "Normal Matrix".

Share this post


Link to post
Share on other sites
Thank you,silvermace.

How to compute the initial tangent, binormal, normal? DO they be built from
texture coordinates instead of position coordinates?

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!