Hi,
I'm using the latest xith-3ds loader available from the xith toolkit projects download page. Loading some models seem to cause a null pointer exception in the class org.newdawn.xith3d.threeds.SmoothGroupProcessor, in method calculateSurfaces at row 160:
1 2 3
| 159: for (int i=0;i<normalCache.length;i++) { 160: normalCache[i].normalize(); 161: } |
The Jeep model loads fine, but some other 3ds files cause that exception (they all seem to use smoothed / gouraud shaded surfaces, in case that has anything to do with the error). I don't have access to ftp upload at the moment, but can send the model by mail if needed.
Traceback:
1 2 3 4 5 6 7
| java.lang.NullPointerException at org.newdawn.xith3d.threeds.SmoothGroupProcessor.calculateSurfaces(SmoothGroupProcessor.java:160) at org.newdawn.xith3d.threeds.SmoothGroupProcessor.process(SmoothGroupProcessor.java:64) at org.newdawn.xith3d.threeds.TDSLoader.processChunk(TDSLoader.java:132) at org.newdawn.xith3d.threeds.TDSLoader.load(TDSLoader.java:99) at org.worldforge.gamesystem.shape.Model3DSShapeFactoryLoader.loadShapeFactory(Model3DSShapeFactoryLoader.java:90) ... |
Best regards,
--
zzorn