Hi.
I just started to work with irrlicht and i am going through the tutorials.
I am using dev cpp ide and i set it up correctly.I opened the helloworld example and complied it and it complied quite successfully.Now when i run it all i get is a blank window and the console that appears gives me a message saying that "Could not load mesh,because file could not be opened.: ../../media/sydney.md2"
I tried to replace the ../../media/sydney.md2 to the actual location of the file i.e C:\irrlicht 1.4.1\media\sydney.md2 but it didnt work and i got the same error.
Please help!
Last edited by chaitanyaraghav on Sat Aug 23, 2008 7:19 am, edited 1 time in total.
ok thanks for the reply!
i copied the media folder in the irrlicht folder to the root directory of the
dev cpp compiler and edited the path from ../../media/sydney.md2 to
../media/sydney.md2 but is there anyother way to load the files!
The files need not be in the same directory, they just have to be accessible via the relative path mentioned, starting in the current working directory. This is usually the directory where you start the app in. So just make sure that two directories above one can find the media directory.
If you use backslahes in C strings you have to escape them with another backslash ("abc\\trs") because otherwise \t would be changed to a tab character (or to other special characters...).