Jump to content
  • Advertisement
Sign in to follow this  
Raeldor

Converting normals from right handed to left handed

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

Advertisement
are you talking about the vertex ordering? or taking normals for a right handed coordinate system and changing them to a left handed one?

vertex ordering is simple. just negate the normal.

going to different handed coordinate systems, just multiply the normal by the same matrix you're using to convert the points to and from the system.

Tim

Share this post


Link to post
Share on other sites
Quote:
Original post by timw
are you talking about the vertex ordering? or taking normals for a right handed coordinate system and changing them to a left handed one?

vertex ordering is simple. just negate the normal.

going to different handed coordinate systems, just multiply the normal by the same matrix you're using to convert the points to and from the system.

Tim


I am talking about taking the normals and changing them. I am not multiplying the points by anything, I am just negating the z-axis. This works for points, but not vectors it seems (unless there is something else wrong of course!).

Share this post


Link to post
Share on other sites
it depends on the types of transformations applied to the object, if you have any non rigid transformaitons, you can't simply multiply the normals with the same matrix you multiply points with. you need to multiply it by the transpose of the inverse of your transform matrix. or is it the inverse of the transpose? I can't remember. try both.

Share this post


Link to post
Share on other sites
Sign in to follow this  

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