Sign in to follow this  
sunrisefe

Tangent space

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this