[SOLVED]Problems of CEGUI and Irrlicht
Posted: Sat Jul 24, 2010 04:40
Hello all,
I am using CEGUI 0.7.1 and Irrlicht-1.7.1 and have managed to run some basic applications. I wanted to set a static text window to display the FPS in real-time. However, when I was trying to set the text of a static text window within the main loop, a problem occurred. The engine only renders the CEGUI window, and all the Irrlicht scene nodes were not rendered. I've searched the solutions for hours and I couldn't find one... Please help me. Thanks.
The problem seems to be similiar tohttp://www.cegui.org.uk/phpBB2/viewtopic.php?f=10&t=4992, but I do not use OGRE...
IDE:Visual Studio 2008 SP1.
Log File:
Source Code(key):
I am using CEGUI 0.7.1 and Irrlicht-1.7.1 and have managed to run some basic applications. I wanted to set a static text window to display the FPS in real-time. However, when I was trying to set the text of a static text window within the main loop, a problem occurred. The engine only renders the CEGUI window, and all the Irrlicht scene nodes were not rendered. I've searched the solutions for hours and I couldn't find one... Please help me. Thanks.
The problem seems to be similiar tohttp://www.cegui.org.uk/phpBB2/viewtopic.php?f=10&t=4992, but I do not use OGRE...
IDE:Visual Studio 2008 SP1.
Log File:
Code: Select all
24/07/2010 12:06:50 (Std) ---- Version 0.7.1 (Build: Jul 22 2010 Debug Microsoft Windows MSVC++ 9.0 32 bit) ----
24/07/2010 12:06:50 (Std) ---- Renderer module is: CEGUI::IrrlichtRenderer - Official Irrlicht based 2nd generation renderer module. RenderTarget support is enabled. ----
24/07/2010 12:06:50 (Std) ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
24/07/2010 12:06:50 (Std) ---- Image Codec module is: IrrlichtImageCodec - Integrated ImageCodec using the Irrlicht engine. ----
24/07/2010 12:06:50 (Std) ---- Scripting module is: None ----
Source Code(key):
Code: Select all
while(device->run())
{
int fps = driver->getFPS();
char * FPS = new char[10];
itoa(fps,FPS,10);
fWnd->setText(FPS);
delete FPS;
driver->beginScene(true, true, SColor(255,100,101,140));
smgr->drawAll();
CEGUI::System::getSingleton().renderGUI();
driver->endScene();
}