Make CEGUI elements render *over* (on top of) Ogre overlays
Posted: Mon Sep 27, 2004 12:44
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
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