• Advertisement
Sign in to follow this  

Invert the y axis

This topic is 1211 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 created the Orthogonal Projection with this matrix:

2.0f/(right-left)             0                            0                -((right+left)/(right-left))
       0                2.0f/(top-bottom)                  0                -((top+bottom)/(top-bottom))
       0                      0                       -2.0f/(zf-zn)             -((zf+zn)/(zf-zn))
       0                      0                            0                             1

I call the function on this way:

OrthoProjection(&projection, 0, width, height, 0, -1.0f, 1.0f);

And I want to invert the y-axis.


I'm looking for another solution because I don't want to multiply the projection matrix by scale matrix (1.0f, -1.0f, 1.0f)


How can I do it???


Thanks advance.



Share this post

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

  • Advertisement