Page 1 of 1

Gui Questions

Posted: Tue Sep 11, 2007 10:17 pm
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!

Posted: Tue Sep 11, 2007 10:23 pm
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?

Posted: Wed Sep 12, 2007 8:22 pm
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.

Posted: Wed Sep 12, 2007 11:18 pm
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: