CEGUI z-order problem [SOLVED]
Posted: Wed Mar 31, 2010 10:13
Hello, I was using older version of CEGUI (that one, which was provided with OGRE 1.6). Lately I have upgraded to OGRE 1.7 and CEGUI 0.7.1. Previously I was using OgreCEGUIRenderer and was creating it like this:
The third bool parameter was telling whether CEGUI should be drawn after render queue (on top of Ogre's overlays) or before render queue (below Ogre's overlays).
I have problem because I have fade in/out effect based on Ogre's overlays. After switching to new CEGUI all my screen is fading to black, but CEGUI elements like buttons, images etc. are staying always visible.
Is there any way to tell the CEGUI::OgreRenderer to be drawn below Ogre's overlays?
Currently my renderer setup looks like this:
Or should I call some "render" function on CEGUI by myself?
Edit:
I used code from this post, removed not needed (for me) functionality and it worked .
Code: Select all
mGUIRenderer = new CEGUI::OgreCEGUIRenderer( mWindow, Ogre::RENDER_QUEUE_OVERLAY, false, 3000, mGuiSceneMgr );
The third bool parameter was telling whether CEGUI should be drawn after render queue (on top of Ogre's overlays) or before render queue (below Ogre's overlays).
I have problem because I have fade in/out effect based on Ogre's overlays. After switching to new CEGUI all my screen is fading to black, but CEGUI elements like buttons, images etc. are staying always visible.
Is there any way to tell the CEGUI::OgreRenderer to be drawn below Ogre's overlays?
Currently my renderer setup looks like this:
Code: Select all
mGUIRenderer = &CEGUI::OgreRenderer::bootstrapSystem();
Or should I call some "render" function on CEGUI by myself?
Edit:
I used code from this post, removed not needed (for me) functionality and it worked .