Sign in to follow this  
Raeldor

Converting normals from right handed to left handed

Recommended Posts

timw    598
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
Raeldor    254
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
timw    598
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this