Flip complete output

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

jorrit5477
Just popping in
Just popping in
Posts: 4
Joined: Mon Apr 23, 2007 07:17

Flip complete output

Postby jorrit5477 » Wed Apr 25, 2007 07:37

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

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Postby lindquist » Wed Apr 25, 2007 11:12

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

jorrit5477
Just popping in
Just popping in
Posts: 4
Joined: Mon Apr 23, 2007 07:17

Postby jorrit5477 » Wed Apr 25, 2007 11:21

OK, thnx!

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

jorrit5477
Just popping in
Just popping in
Posts: 4
Joined: Mon Apr 23, 2007 07:17

Postby jorrit5477 » Tue May 01, 2007 22:45

It was almost the same, I have scaled the projection matrix negatively around the x and/or y-axis, succesfully flipping the output :)

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Postby lindquist » Thu May 03, 2007 13:08

cool :)
glad to hear it worked out painlessly!


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 2 guests