Overlay text

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
thojoh370
Posts: 12
Joined: Sun Nov 04, 2007 7:22 pm
Location: Linköping, Sweden
Contact:

Overlay text

Post 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?
Programmers don't DIE, they just GOSUB and then RETURN.
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

May be you forget to call guienv->drawAll().
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

Try play with the order of those lines:
smgr->drawAll();
GUIenv->drawAll();

Maybe put them at the end before driver->endScene()..
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Re: Overlay text

Post 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... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Post Reply