Make CEGUI elements render *over* (on top of) Ogre overlays

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

User avatar
Injector
Just popping in
Just popping in
Posts: 18
Joined: Wed Jan 12, 2005 12:06

Make CEGUI elements render *over* (on top of) Ogre overlays

Postby Injector » Mon Sep 27, 2004 12:44

Hello again,

This is one of those "render-to-texture" questions... :roll:

I have got a single Ogre overlay covering the whole screen (a panel) which simply displays a texture I rendered the scene into.
For the final output on the screen, I want CEGUI elements to render on top of this quad (directly into the framebuffer) so the gui elements do not suffer from fuzziness/sampling issues.
Problem is: No matter what I tried (changing zorder for the Ogre panel, setting its material props to not write depth/check depth or make depth test always fail), the quad always renders on top of all CEGUI elements. In wireframe mode, I can see that the elements are there, but they are "behind" the Ogre overlay.

How can I change that?

Thx in advance.

Injector

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Make CEGUI elements render *over* (on top of) Ogre overlays

Postby CrazyEddie » Mon Sep 27, 2004 13:36

On your CEGUI::OgreRenderer you can set it to render 'post' queue and thus on top of the overlays.

This can be done either at creation time or at any time afterwards...

Code: Select all

using namespace CEGUI;
((OgreRenderer*)System::getInstance().getRenderer())->setTargetRenderQueue(Ogre::RENDER_QUEUE_OVERLAY, true);

The important bit here being the final 'true'.

I think this is what you want :D

HTH

CE.

User avatar
Injector
Just popping in
Just popping in
Posts: 18
Joined: Wed Jan 12, 2005 12:06

Make CEGUI elements render *over* (on top of) Ogre overlays

Postby Injector » Mon Sep 27, 2004 13:56

Sometimes life can be so easy :D

Thanks again, now it works.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 1 guest