fantasian
02-08-2012 14:14:27
Hi, we are converting a project from Windows to mobile through Ogre3d4Marmalde. Our project uses MyGUI, so this needs to be made to work with OpenGL ES 2, too.
As far as I understand, in Ogre, Renderables are grouped by Pass. For each group of Renderables with the same Pass, SceneMngr::_setPass will be called, which will bind gpu program, before RenderSystem::_render(const RenderOperation& op) gets called.
MyGUI rendering works differently. Every object has a vertex buffer and a texture and as it is rendered it sets it's texture with RenderSystem::_setTexture and then builds RenderOperations which sends to RenderSystem::_render. But this method does not work with OpenGLES2RenderSystem because no program is bound before rendering.
Please, can anyone suggest what we might do to implement MyGUI rendering in Ogre3d4Marmalade;
As far as I understand, in Ogre, Renderables are grouped by Pass. For each group of Renderables with the same Pass, SceneMngr::_setPass will be called, which will bind gpu program, before RenderSystem::_render(const RenderOperation& op) gets called.
MyGUI rendering works differently. Every object has a vertex buffer and a texture and as it is rendered it sets it's texture with RenderSystem::_setTexture and then builds RenderOperations which sends to RenderSystem::_render. But this method does not work with OpenGLES2RenderSystem because no program is bound before rendering.
Please, can anyone suggest what we might do to implement MyGUI rendering in Ogre3d4Marmalade;