RenderGroup for MyGUI

jsding

26-04-2013 03:06:27

Hi,

Can I change the default rendergroup of MyGUI. I changed the renderQueueStarted() in MyGUI_OgreRenderManager.cpp to

if (Ogre::RENDER_QUEUE_MAIN != queueGroupId)
return;

Ogre::Viewport* viewport = mSceneManager->getCurrentViewport();
// if (nullptr == viewport || !viewport->getOverlaysEnabled())
if (nullptr == viewport)
return;

But the screen turned to blank(nothing rendered).

Is that possible? I want to render particle system on top of MyGUI.

Thanks for your help.

Edit:

If I render MyGUI on RENDER_QUEUE_MAIN, and ParticleUniverse on RENDER_QUEUE_OVERLAY, ParticleUniverse will not rendered.

scrawl

27-04-2013 10:27:20

Try clearing the depth buffer before rendering the particles, or render them with depth_check off.

jsding

27-04-2013 14:32:32

Hi, Scrawl,

Thanks for your reply. All my particle materials are depth_check off, but with no luck. :( .

And I try render all particles on a Texture with RenderBoxScene widget. But it seems only support alpha_blend particles(scene_blend add particles will have a black background).

Any idea?

Thanks for your help.

Try clearing the depth buffer before rendering the particles, or render them with depth_check off.