Hi,
I have been trying to load a 3ds mesh on a Win CE 6.0 device using Irrlicht v1.7.3. The ISceneManager->getMesh(mesh.3ds) is always returning NULL. I have checked and double checked and the mesh file is present at the location provided in the getMesh() function.
Can anyone suggest me if there are other reasons for ISceneManager->getMesh(mesh.3ds) returning NULL pointer?
Any help in this regards would be really helpful.
Gaurav Jha
ISceneManager->getMesh(file.3ds) always returns NULL
Re: ISceneManager->getMesh(file.3ds) always returns NULL
not being able to open the file
not being able to find the file
finding an error in the file
Can you see any console output? if so, provide it.
not being able to find the file
finding an error in the file
Can you see any console output? if so, provide it.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: ISceneManager->getMesh(file.3ds) always returns NULL
Maybe try with a .obj file instead, could be an endianess problem.
Re: ISceneManager->getMesh(file.3ds) always returns NULL
Hi,
While executing the program on the device, there is no console window. Is there a way to view the console messages on the device?
I am trying to view the room.3ds file available with the Irrlicht engine.
Regards,
Gaurav Jha
While executing the program on the device, there is no console window. Is there a way to view the console messages on the device?
I am trying to view the room.3ds file available with the Irrlicht engine.
Regards,
Gaurav Jha
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: ISceneManager->getMesh(file.3ds) always returns NULL
It does not matter which 3ds file you view, as all 3ds files are binary. Since we have a very simple mechanism of checking for endianess, wit might be wrong for your platform. This would lead to broken loading of several mesh file formats. So you should try to load a different type, which uses ASCII format. You can also load the dwarf.x provided in the media directory, should be ASCII as well.
You can intercept log messages in an event receiver and print them to the screen or use system log functions. The latter is platform specific, though.
You can intercept log messages in an event receiver and print them to the screen or use system log functions. The latter is platform specific, though.
Re: ISceneManager->getMesh(file.3ds) always returns NULL
Hi,
I tried the the dwarf.x file and it was successful on the WIN CE device.
Thanks.
I tried the the dwarf.x file and it was successful on the WIN CE device.
Thanks.
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: ISceneManager->getMesh(file.3ds) always returns NULL
Ok, I'll move this one to the bug forum then, as it should be a big endian problem in that case.