# tangent matrix inverse

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

## Recommended Posts

hello! I want to move a normal from texture space to object space. I have a tangent matrix that moves from object space to texture space. If I inverse this matrix, will I then have a matrix that will move a direction vector from texture space to object space?

##### Share on other sites
Quote:
 Original post by JohnnyCodehello!I want to move a normal from texture space to object space. I have a tangent matrix that moves from object space to texture space. If I inverse this matrix, will I then have a matrix that will move a direction vector from texture space to object space?

The general answer is yes; but I generally prefer to perform calculus in Tangent Space (but this is personally).

Regards
Mauro
http://www.breakinglass.com

##### Share on other sites
Yes you are correct, but:

Usually you keep your tangent space matrix orthonormal (though you don't have to)
which allows you to use the transpose of that matrix as its inverse because keeping both at every vertex would be expensive.

In practice, in hlsl, just multiply from the left to go one way, and from the right to go the other way, because mul(v,M) is the same as mul(transpose(M),v)

##### Share on other sites
Quote:
 Original post by kgyYes you are correct, but:Usually you keep your tangent space matrix orthonormal (though you don't have to)which allows you to use the transpose of that matrix as its inverse because keeping both at every vertex would be expensive.In practice, in hlsl, just multiply from the left to go one way, and from the right to go the other way, because mul(v,M) is the same as mul(transpose(M),v)

Thanks!

1. 1
Rutin
47
2. 2
3. 3
4. 4
5. 5

• 13
• 10
• 12
• 10
• 13
• ### Forum Statistics

• Total Topics
632994
• Total Posts
3009769
• ### Who's Online (See full list)

There are no registered users currently online

×