Ok the problem is i run the helloworld without a problem
But the problem is it show the Device window for 1 seconds and the the execution of program stops
Everthing works without a problem , but the window just dispears after a second .
Also i cant see the lady on the screen or the statictext
Any info on that ??
Im struggeling with hello world Prodject
Im struggeling with hello world Prodject
Learning C++
-
- Posts: 1215
- Joined: Tue Jan 09, 2007 7:03 pm
- Location: Leuven, Belgium
Did you modify the example in any way?
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
I'm still not sure what exactly you guys are doing. The following information would help us to help you:
- Operating System (windows or linux)
- IDE (for example Code::Blocks or Visual Studio)
- Do you use provided project files which come with the examples or do you try to create your own project
- Are you using unmodified example sources. Or if not - please post what you are using instead.
- Do you get any comler or linker errors. Or any runtime warnings in the console output? (You can also start from console (dosbox for example) so output doesn't vanish when the application exits too fast to read anything).
- Do you start from within the IDE or directly the .exe? (And does it change when you do that the other way?)
- Operating System (windows or linux)
- IDE (for example Code::Blocks or Visual Studio)
- Do you use provided project files which come with the examples or do you try to create your own project
- Are you using unmodified example sources. Or if not - please post what you are using instead.
- Do you get any comler or linker errors. Or any runtime warnings in the console output? (You can also start from console (dosbox for example) so output doesn't vanish when the application exits too fast to read anything).
- Do you start from within the IDE or directly the .exe? (And does it change when you do that the other way?)
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
There are a couple of places in the unmodified helloworld.cpp that test to make sure a resource was loaded properly and if not it doesn't try to "robustly" handle the error, but rather, "fails gracefully". In particular...
...would allow your program to compile, bring up a window, not show the "lady" [although I'm not sure you could call anyone who dresses like that a "lady" ] and then just simply close/terminate the program if for some reason it failed to find sydney's path, i.e. "../../media/sydney.md2".
Did you install Irrlicht to a non-standard location? Because if so, you'll need to change the "../.. " part of the path before "media/sydney.md2" to something else.
Code: Select all
IAnimatedMesh* mesh = smgr->getMesh("../../media/sydney.md2");
if (!mesh)
{
device->drop();
return 1;
}
IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode( mesh );
Did you install Irrlicht to a non-standard location? Because if so, you'll need to change the "../.. " part of the path before "media/sydney.md2" to something else.
"Computers don't make mistakes! What they do they do on purpose!!"
-Dale Gribble
-Dale Gribble
This is what the issue was. Thanks.blAaarg wrote:There are a couple of places in the unmodified helloworld.cpp that test to make sure a resource was loaded properly and if not it doesn't try to "robustly" handle the error, but rather, "fails gracefully". In particular...
...would allow your program to compile, bring up a window, not show the "lady" [although I'm not sure you could call anyone who dresses like that a "lady" ] and then just simply close/terminate the program if for some reason it failed to find sydney's path, i.e. "../../media/sydney.md2".Code: Select all
IAnimatedMesh* mesh = smgr->getMesh("../../media/sydney.md2"); if (!mesh) { device->drop(); return 1; } IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode( mesh );
Did you install Irrlicht to a non-standard location? Because if so, you'll need to change the "../.. " part of the path before "media/sydney.md2" to something else.