I'm currently trying to do the first tutorial available in the tutorial section. I've set up and installed all the other libraries and I've copied the main.cpp file into a new project.
When I try to run it the window and console open, but both close immediately. I've tried editing the code and running it through Debugging and without, but the problem remains. Any help?
I'm using VS2010.
Window Keeps Closing
Re: Window Keeps Closing
Irrlicht comes with tutorials + project files for those. Look in the examples folder and try those.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Window Keeps Closing
I had that problem too and it seems that you would need to change the (erhmmm whats it called again).
Like if you use code blocks change directx to opengl.
Like if you use code blocks change directx to opengl.
-
- Posts: 8
- Joined: Mon Dec 19, 2011 3:48 pm
Re: Window Keeps Closing
I can't find anything in the folder for that example. I've probably missed something so I'll have another look.CuteAlien wrote:Irrlicht comes with tutorials + project files for those. Look in the examples folder and try those.
Haven't a clue sorry.eejin wrote:I had that problem too and it seems that you would need to change the (erhmmm whats it called again).
Like if you use code blocks change directx to opengl.
Re: Window Keeps Closing
Try inserting printf statements before, inside and after the run loop of irrlicht:
Code: Select all
...
printf("BEFORE run\n");
while(device->run())
{
...
printf("RUNNING\n");
}
...
printf("END run\n");
-
- Posts: 8
- Joined: Mon Dec 19, 2011 3:48 pm
Re: Window Keeps Closing
I pasted the code in but no luck. If I refuse to debug the Console appears , but like before the window appears and closes almost immediately.
Re: Window Keeps Closing
The first example is in examples/01.HelloWorld.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Window Keeps Closing
You can open a command window and change to the directory where the app is. After you run the app, the window stays open and you can see your error.