Skip to main content

History: Ogre iPhone FAQ

Preview of version: 7

Issues and Troubleshooting

  • Viewport::SetOrientation must be called after a frame is rendered to take effect. For example to change to Viewport::OR_PORTRAIT:
Copy to clipboard
mRoot->renderOneFrame(); mCamera->getViewport()->setOrientation(Viewport::OR_PORTRAIT);

  • Q: I get error "OGRE EXCEPTION(7:InternalErrorException): Cannot create GL vertex buffer in GLESHardwareVertexBuffer::GLESHardwareVertexBuffer" when I try to load meshes, how can I get rid of this ?


It seems that the GLES render system can't create buffers just before rendering one frame.

Verify that your load() methods are not in a method called just before the rendering of a frame - methods like frameStarted().
On the other hand, you can load your meshes just after the rendering - methods like frameEnded().

Out of the rendering loop, GLES seems to not have that problem.

History

Information Version
Mon 01 of Aug, 2011 00:04 GMT-0000 jacmoe 8
Sat 01 of May, 2010 05:23 GMT-0000 jacmoe 7
Mon 04 of Jan, 2010 17:58 GMT-0000 jacmoe 6
Thu 31 of Dec, 2009 19:31 GMT-0000 jacmoe 5
Thu 17 of Dec, 2009 17:27 GMT-0000 spacegaier 4
Thu 17 of Dec, 2009 16:29 GMT-0000 jacmoe 3
Thu 17 of Dec, 2009 16:28 GMT-0000 jacmoe 2
Sat 31 of Oct, 2009 08:46 GMT-0000 Spacegaier added category and improved markup a bit 1