Page 1 of 1

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

Posted: Mon Sep 27, 2004 12:44
by Injector
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

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

Posted: Mon Sep 27, 2004 13:36
by CrazyEddie
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.

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

Posted: Mon Sep 27, 2004 13:56
by Injector
Sometimes life can be so easy :D

Thanks again, now it works.