I have been successful in getting CEGUI to load inside my Ogre3D-based game, however I am having some problems getting text to display correctly. Furthermore, there seems to be a problem with the way the titlebar-area is rendered.
For example, this is a screenshot of the in-game engine:

This is a screenshot of the same GUI elements drawn inside CELayoutEditor (where they were designed):

I am using the layout found in the CEGUI SDK (e.g. ${CEGUI_PATH}/datafiles), loaded by the Ogre3D renderer. Ogre3D is version 1.4.5, and CEGUI is the version which comes in the SDK, 0.5.
CEGUI is loaded using the following code:
Code: Select all
m_GUIRenderer = new CEGUI::OgreCEGUIRenderer(window, Ogre::RENDER_QUEUE_OVERLAY, false, 3000, sceneMgr);
m_GUISystem = new CEGUI::System(m_GUIRenderer);
CEGUI::SchemeManager::getSingleton().loadScheme((CEGUI::utf8*)"TaharezLook.scheme");
m_GUISystem->setDefaultMouseCursor((CEGUI::utf8*)"TaharezLook", (CEGUI::utf8*)"MouseArrow");
CEGUI::Window* sheet = CEGUI::WindowManager::getSingleton().loadWindowLayout((CEGUI::utf8*)"my.layout");
m_GUISystem->setGUISheet(sheet);
I haven't come across any forum posts related to missing text, so any help is appreciated.
Cheers
