Sign in to follow this  

How to flip a matrix across one axis?

This topic is 2323 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 have some geometry that I need to flip across the x axis using a 4x4 matrix but when I scale it by -1 it flips my polygons inside out and it also cases me other problems with using the matrix to place an body in bullet. I'm really confused about how to solve this problem?

Share this post


Link to post
Share on other sites
[quote name='SteveDeFacto' timestamp='1312792801' post='4846104']when I scale it by -1 it flips my polygons inside out[/quote]That's a side effect of flipping geometry -- the vertex winding order will become the opposite of what it used to be -- it's to be expected.

How are you performing this scaling operation?

Share this post


Link to post
Share on other sites
[quote name='Hodgman' timestamp='1312794191' post='4846107']
[quote name='SteveDeFacto' timestamp='1312792801' post='4846104']when I scale it by -1 it flips my polygons inside out[/quote]That's a side effect of flipping geometry -- the vertex winding order will become the opposite of what it used to be -- it's to be expected.

How are you performing this scaling operation?
[/quote]

The problem was the projection matrix and I fixed it! =D

Share this post


Link to post
Share on other sites

This topic is 2323 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.

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