Problem using .irr Scenes
Posted: Thu Aug 31, 2006 2:45 pm
Ok somehow the SceneLoading isn't working on my system...
When i use the following code i prints out in the console window that it loaded all the meshes and textures correctly but nothing is drawn on the screen and the fps camera doesn't work either(means the mouse doesn't stay in the middle of the screen)
can anyone help me?
edit: Only scenes made with irrEdit 0.4 don'T work the shipped exampel does work
When i use the following code i prints out in the console window that it loaded all the meshes and textures correctly but nothing is drawn on the screen and the fps camera doesn't work either(means the mouse doesn't stay in the middle of the screen)
can anyone help me?
edit: Only scenes made with irrEdit 0.4 don'T work the shipped exampel does work
Code: Select all
int main(int argc, char *argv[])
{
IrrlichtDevice *device = createDevice(EDT_OPENGL, dimension2d<s32>(640,480), 32, false, true, false, NULL);
video::IVideoDriver* driver = device->getVideoDriver();
scene::ISceneManager* smgr = device->getSceneManager();
gui::IGUIEnvironment* gui = device->getGUIEnvironment();
device->setWindowCaption(L"ShootIrr");
smgr->loadScene("data/levels/mytest.irr", 0);
smgr->addCameraSceneNodeFPS();
// draw everything
while(device->run() && driver)
{
driver->beginScene(true, true, video::SColor(255,0,0,255));
smgr->drawAll();
gui->drawAll();
driver->endScene();
}
// delete device
device->drop();
system("PAUSE");
return EXIT_SUCCESS;
}