Gui Questions

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
interceptor
Posts: 22
Joined: Thu Aug 23, 2007 12:39 pm

Gui Questions

Post by interceptor »

Two quick questions

Firstly, no matter what i do, i cannot seem to have any gui elements after i've loaded an irr scene. i would like to have some buttons overlaying the irr scene, but they just dont show when i run the scene.

Secondly, After i used Fadein();, my GUI elements (buttons etc) appear frozen.. any ideas?

thansk guys!
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You have to draw the GUI environment, not just the scene manager.
What is Fadein? Maybe there's a focus problem, or your event receiver does not get the events?
interceptor
Posts: 22
Joined: Thu Aug 23, 2007 12:39 pm

Post by interceptor »

Ok i fixed the first problem, the gui was drawn too early. i put guienv->draw after smgr-> draw and it was fine.

FadeIn is part of the gui. i dunno why it freezes the gui, but the even reciver works fine before i call fadeIn.

Also, when i do:
smgr->getActiveCamera()->setInputReceiverEnabled(false);

and then:
smgr->getActiveCamera()->setInputReceiverEnabled(true);

my app crashes.. any ideas why?

thanks all.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Well, you did not say which object you called fadein with, that's why I asked. Crashes are usually due to corrupted pointers, but we'd have to see code to check this. Or you use a Debugger :idea:
Post Reply