Public Group

Tangent space

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

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 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 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 on other sites
Will someone give me the answer?thank you.

1. 1
2. 2
3. 3
Rutin
25
4. 4
5. 5
khawk
14

• 11
• 11
• 23
• 10
• 9
• Forum Statistics

• Total Topics
633649
• Total Posts
3013117
×