# The Industry's Foundation for High Performance Graphics

1. ## TangentSpace -> WorldSpace

Hi

This might be a stupid question, but well, i donīt know the answer.

If i have a normalmap which represents the normals in tangent-space, then how would i need to transform those vectors to have them in world-space?

I was thinking i would simply need to take the inverse of the TBN-Matrix (which i would use to get other stuff into my tangent-space). However i am not sure if this would work.

And additionally i donīt know how to get that inverse! I know how to calculate it on a piece of paper, but i donīt know how to teach my cpu that algorithm

So, i would either need to know how to calculate that inverse, or how to do this in another way.

Thanks,
Jan.

2. ## Re: TangentSpace -> WorldSpace

If the TBN matrix is orthonormal (i.e. the three vectors are normalized and perpendicular to each other), then the inverse of the matrix is simply its transpose.

If the matrix isn't orthonormal, see the Matrix and Quaternion FAQ .

-- Tom

3. ## Re: TangentSpace -> WorldSpace

Cool, thanks.

Yes, itīs orthogonal.

Jan.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•