MyGUI (svn-rev.1138) Troubles

MuLLeR

02-10-2008 10:59:32

Everything is compiled fine, the samples work fine.
But when i try using it in my app, no GUI is shown (no pointer, no button)


this->m_Gui = new MyGUI::Gui();
this->m_Gui->initialise(GraphicsManager::getSingleton().getRenderWindow());

MyGUI::ButtonPtr button = GuiManager::getSingleton().getGui()->createWidget<MyGUI::Button>("Button",
10, 10, 300, 26, MyGUI::ALIGN_DEFAULT, "Main");
button->setCaption("exit");


before writing this code, i've looked into http://www.ogre3d.org/wiki/index.php/MyGUI_quickstart

the logs are totaly clead, everything is found, loaded and initialized, so i dunno what might be the problem.

Altren

02-10-2008 15:53:47

Get latest revision: re renamed some skin and texture files last few days, may be it was incorrect in some revisions. You also need to update MyGUI files in your project.

MuLLeR

03-10-2008 11:14:09

update to svn rev.1156

same trouble, maybe the problem is somewhere in my code, cause the post effects in ogre do not work either.

For each game state i'm creating it's own camera, and when activating it (the game state), i'm setting the camera for the viewport.

MuLLeR

03-10-2008 12:48:57

update to svn rev.1156

same trouble, maybe the problem is somewhere in my code, cause the post effects in ogre do not work either.

For each game state i'm creating it's own camera, and when activating it (the game state), i'm setting the camera for the viewport.



figured out the problem, it was somewhere in viewport/camera management, as the MyGUI system was inited with one viewport, but rendered in another.