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