Hi,
I need to manage Ogre::Item's in different render queues, in order to render on item in the front of another.
I'm working with:
Code: Select all
this->movableObject->setRenderQueueGroup(static_cast<Ogre::uint8>(renderQueueIndex));
...
// V2 Items
this->sceneManager->getRenderQueue()->setRenderQueueMode(10, Ogre::RenderQueue::Modes::FAST);
this->sceneManager->getRenderQueue()->setSortRenderQueue(10, sortMode);
// V1 Entities
this->sceneManager->getRenderQueue()->setRenderQueueMode(110, Ogre::RenderQueue::Modes::V1_FAST);
this->sceneManager->getRenderQueue()->setSortRenderQueue(110, sortMode);
this->sceneManager->getRenderQueue()->setRenderQueueMode(16, Ogre::RenderQueue::Modes::FAST);
...
this->sceneManager->getRenderQueue()->setRenderQueueMode(155, Ogre::RenderQueue::Modes::V1_FAST);
this->sceneManager->getRenderQueue()->setSortRenderQueue(155, sortMode);
this->sceneManager->getRenderQueue()->setRenderQueueMode(156, Ogre::RenderQueue::Modes::V1_LEGACY);
this->sceneManager->getRenderQueue()->setSortRenderQueue(156, sortMode);
this->sceneManager->getRenderQueue()->setRenderQueueMode(NOWA::RENDER_QUEUE_V2_OBJECTS_ALWAYS_IN_FOREGROUND, Ogre::RenderQueue::Modes::FAST);
this->sceneManager->getRenderQueue()->setSortRenderQueue(NOWA::RENDER_QUEUE_V2_OBJECTS_ALWAYS_IN_FOREGROUND, sortMode);
this->sceneManager->getRenderQueue()->setRenderQueueMode(NOWA::RENDER_QUEUE_V1_OBJECTS_ALWAYS_IN_FOREGROUND, Ogre::RenderQueue::Modes::V1_FAST);
this->sceneManager->getRenderQueue()->setSortRenderQueue(NOWA::RENDER_QUEUE_V1_OBJECTS_ALWAYS_IN_FOREGROUND, sortMode);
this->sceneManager->getRenderQueue()->setRenderQueueMode(NOWA::RENDER_QUEUE_GIZMO, Ogre::RenderQueue::Modes::V1_FAST);
this->sceneManager->getRenderQueue()->setSortRenderQueue(NOWA::RENDER_QUEUE_GIZMO, sortMode);
this->sceneManager->getRenderQueue()->setRenderQueueMode(NOWA::RENDER_QUEUE_MAX, Ogre::RenderQueue::V1_FAST);
this->sceneManager->getRenderQueue()->setSortRenderQueue(NOWA::RENDER_QUEUE_MAX, sortMode);
If I change for an item the render queue group via 'setRenderQueueGroup' e.g. from 10 to 9. It does not work.
What can that be?
Best Regards
Lax