Hello again,
This is one of those "render-to-texture" questions...
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
Moderators: CEGUI MVP, CEGUI Team
- 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
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...
The important bit here being the final 'true'.
I think this is what you want
HTH
CE.
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
HTH
CE.
Make CEGUI elements render *over* (on top of) Ogre overlays
Sometimes life can be so easy
Thanks again, now it works.
Thanks again, now it works.
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 20 guests