How to display 3D-Objects in front of GUI-Elements?


21-02-2011 12:39:41


I was asking myself if it is possible to display some Ogre 3D-Objects (namely entities and particle effects) in front of the MyGUI layer.

As I reckon the default behaviour is that the MyGUI layers are the last to be drawn. I guess it is possible to 'shift' it backwards (or into the screen) by manipulating the renderqueue, but I don't know how it's done.

Any help is appreciated. :)

Almost forgot, using:
Ogre 1.7.1
MyGUI 3.0.1


21-02-2011 17:56:13

MyGUI use Ogre::RENDER_QUEUE_OVERLAY for render.
You can look at Platforms/Ogre/OgrePlatform/src/MyGUI_OgreRenderManager.cpp to see how and where MyGUI rendered.
So you can either modify MyGUI_OgreRenderManager or render on higher layers.


22-02-2011 07:40:16

Hi Altren,

many thanks. I will play around with that and I'm sure I will come to a working solution.

I just needed a point to start.