Creating .x files for Irrlicht.

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Dirtbiker
Posts: 29
Joined: Wed Aug 31, 2005 7:02 am
Location: U.S.
Contact:

Creating .x files for Irrlicht.

Post by Dirtbiker »

I need help creating .x files for Irrlicht.
I created a model in Game Space. My IDE gives me an error "Unhandled Exception:Attempt to access field or method of Null object".
My code loads the earth model from the demo.

Does anyone have any suggestions for exporting valid .x files?

I'll post my model on here.
http://www.freewebs.com/conflict-games/ ... dia/Ship.X
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

The null pointer exception is due to a problem with loading the mesh. If you don't check whether the mesh is not correctly loaded you can easily dereference a null pointer.
Since error messages given by Irrlicht are usually not very eloquent it is hard to judge which problem occurs. But I guess it is due to binary .x format. You cann add the binaryX.patch to enable the binary file format. I think you can also use the mview tool from the DirectX SDK to convert to ascii .x format (better change the options of your exporter, though)
Post Reply