jPCT - a 3d engine for Java > Bugs
ArrayIndexOutOfBoundsException at GenericVertexController.updateMesh
raft:
any idea why this happens ?
--- Code: ---Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 8
at com.threed.jpct.GenericVertexController.updateMesh(Unknown Source)
at com.threed.jpct.Mesh.applyVertexController(Unknown Source)
..
--- End code ---
EgonOlsen:
When does this happen? Do you have a test case?
raft:
found it i guess. it happens when an empty Object3D is created with new constructor:
--- Code: --- Object3D object = new Object3D(new float[0], new float[0], new int[0], TextureManager.TEXTURE_NOTFOUND);
object.build();
object.getMesh().setVertexController(..);
object.getMesh().applyVertexController();
--- End code ---
an empty object created with old constructor throws same exception with different index (1)
--- Code: --- Object3D object = new Object3D(0);
--- End code ---
hope this helps,
r a f t
EgonOlsen:
I'll look into it. But what's the point of using an IVertexController on an empty object anyway?
raft:
--- Quote from: EgonOlsen on February 01, 2010, 07:56:36 am ---But what's the point of using an IVertexController on an empty object anyway?
--- End quote ---
no point, the collada exporter just exported so..
Navigation
[0] Message Index
[#] Next page
Go to full version