Page 1 of 1

Overlay text

Posted: Wed Nov 07, 2007 1:05 pm
by thojoh370
Hi!
I saw in one of the tutorials (I think it was the terrain one) that you can add a static overlay text in the games. It worked in the terrain example, but when I was going to try it in my game it didn't show up on the screen. (But the compiling process was successful so there appears to be no problems in the code.

What I've done this far is created a game that loads a Quake 3 map, as well as added collision detection to it so that players can walk around the maps. But that static text ... well, it doesn't want to show up!

Perhaps I put the code wrong? Is it supposed to be placed in the beginning of main() or where shall I put it?

Posted: Wed Nov 07, 2007 2:11 pm
by arras
May be you forget to call guienv->drawAll().

Posted: Wed Nov 07, 2007 6:23 pm
by MasterGod
Try play with the order of those lines:
smgr->drawAll();
GUIenv->drawAll();

Maybe put them at the end before driver->endScene()..

Re: Overlay text

Posted: Wed Nov 07, 2007 6:43 pm
by Acki
thojoh370 wrote:Perhaps I put the code wrong?
maybe, but we can only guess...
to show us the code would be pretty helpfull to us... ;)