Page 1 of 1

Flip complete output

Posted: Wed Apr 25, 2007 07:37
by jorrit5477
Hello,

I am currently investigating the possibilties to use CEGUI and OGRE for a project, in which the display/output will be viewed through a physical mirror. So therefore I need to flip the display vertically in order for correct interaction.

For the scene in OGRE I can use the Compositor framework. For the CEGUI layer this doesn't seem to work, so I am thinking about another way. I was looking in the Renderer code and noticed that I might be able to flip the quads that are created.

I also noticed there is an OrientationFlags enumeration, but haven't found any function using this as input.

Would flipping the quads created through the Renderer be the best solution or is there any other way?

Cheers!
Jorrit

Posted: Wed Apr 25, 2007 11:12
by lindquist
I'm not sure if Ogre has something similar (but I'll assume).
In OpenGL it would be as simple as inverting the axis in the glOrtho call.

HTH

Posted: Wed Apr 25, 2007 11:21
by jorrit5477
OK, thnx!

Tonight I'll have a look at both renderers and see what can be done.

Posted: Tue May 01, 2007 22:45
by jorrit5477
It was almost the same, I have scaled the projection matrix negatively around the x and/or y-axis, succesfully flipping the output :)

Posted: Thu May 03, 2007 13:08
by lindquist
cool :)
glad to hear it worked out painlessly!