MD2Loader

hello…i created a model and try to load it to java using MD2Loader but i got this error message

java.lang.ArrayIndexOutOfBoundsException: 0
at javax.media.j3d.GeometryStripArrayRetained.setStripVertexCounts(GeometryStripArrayRetained.java:106)
at javax.media.j3d.GeometryStripArray.(GeometryStripArray.java:60)
at javax.media.j3d.TriangleFanArray.(TriangleFanArray.java:60)

but when i load the pac3D.md2 and tris.md2 (download from internet)is ok, no error occur…how to solve it??? thanks

That would appear to be Java 3D you’re now using, so why are you posting in the LWJGL forum?

Incidently, the error most likely means the .md2 has 0 vertexes and if you’re using the MD2 loader from New Dawn thats means the GL commands at the end of the MD2 file are invalid.

Kev