Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

kimryo

Convert object space to tangent space?

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

I''m doing dot3 bumpmapping. The directional light''s shadows do not change while the model do animation. I know I should use the tangent space,But: How to convert object space(The normalmap''s normal is stored in object space) to tangent(texture) space? How to build the tangent matrix?And do I need to multiply this matrix to every vertex of render object? thanks. We create world.

Share this post


Link to post
Share on other sites
Advertisement
I am not sure exactly of the dot3 bumpmapping method, but to convert a single normal to a tangent line, you will want the perpendicular vector of the normal the get that tangent.

So, if you have a vector N(x,y,z) which is the direction of the normal, you can see it as a direction starting from origin pointing towards x,y,z you want the perpendicular of that slope, to get the tangent slope.

-------
Homepage: http://students.washington.edu/andrey

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!