ISceneManager->getMesh(file.3ds) always returns NULL

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
gauravjha
Posts: 26
Joined: Thu Jan 24, 2013 4:52 am

ISceneManager->getMesh(file.3ds) always returns NULL

Post by gauravjha »

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
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: ISceneManager->getMesh(file.3ds) always returns NULL

Post by Mel »

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.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: ISceneManager->getMesh(file.3ds) always returns NULL

Post by hybrid »

Maybe try with a .obj file instead, could be an endianess problem.
gauravjha
Posts: 26
Joined: Thu Jan 24, 2013 4:52 am

Re: ISceneManager->getMesh(file.3ds) always returns NULL

Post by gauravjha »

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
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: ISceneManager->getMesh(file.3ds) always returns NULL

Post by hybrid »

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.
gauravjha
Posts: 26
Joined: Thu Jan 24, 2013 4:52 am

Re: ISceneManager->getMesh(file.3ds) always returns NULL

Post by gauravjha »

Hi,

I tried the the dwarf.x file and it was successful on the WIN CE device.

Thanks.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: ISceneManager->getMesh(file.3ds) always returns NULL

Post by hybrid »

Ok, I'll move this one to the bug forum then, as it should be a big endian problem in that case.
Post Reply