I'm back with a new newbie question
My program is in a folder, and in the same folder their is a media folder, for the files.
So that means, I can get relative in the media folder from my program like this: ./media/File.xxx
In the media folder, their is a file called rocket.obj, and of course I want to load it in my Scene. But when I load it relative
Code: Select all
IAnimatedMesh* mesh = smgr->getMesh("./media/rocket.obj"); Irrlicht Engine version 1.7.3
Linux 3.2.0-26-generic-pae #41-Ubuntu SMP Thu Jun 14 16:45:14 UTC 2012 i686
Creating X window...
Using plain X visual
Visual chosen: : 33
Could not load mesh, because file could not be opened: : ./media/rocket.obj
But when I make the path absolute, it works. But of course I want to have the path relative, because it's better when I want to give someone else the program...
Thanks
MynithiX