ryerrabelli / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

TestQ3 IndexOutOfBoundsException #386

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If I try to run the TestQ3.java jme3 test I get an IndexOutOfBoundsException. 
The same Exception is thrown if I try to generate a MeshCollisionShape from my 
own (not so large) game level.

java.lang.IndexOutOfBoundsException
    at java.nio.Buffer.checkIndex(Buffer.java:531)
    at java.nio.DirectShortBufferU.get(DirectShortBufferU.java:227)
    at com.jme3.scene.mesh.IndexShortBuffer.get(IndexShortBuffer.java:53)
    at com.jme3.bullet.util.Converter.convert(Converter.java:249)
    at com.jme3.bullet.collision.shapes.MeshCollisionShape.createCollisionMesh(MeshCollisionShape.java:70)
    at com.jme3.bullet.collision.shapes.MeshCollisionShape.<init>(MeshCollisionShape.java:65)
    at com.jme3.bullet.util.CollisionShapeFactory.createSingleMeshShape(CollisionShapeFactory.java:203)
    at com.jme3.bullet.util.CollisionShapeFactory.createCompoundShape(CollisionShapeFactory.java:101)
    at com.jme3.bullet.util.CollisionShapeFactory.createCompoundShape(CollisionShapeFactory.java:93)
    at com.jme3.bullet.util.CollisionShapeFactory.createCompoundShape(CollisionShapeFactory.java:123)
    at com.jme3.bullet.util.CollisionShapeFactory.createMeshCompoundShape(CollisionShapeFactory.java:132)
    at com.jme3.bullet.util.CollisionShapeFactory.createMeshShape(CollisionShapeFactory.java:162)
    at com.jme3.bullet.control.RigidBodyControl.createCollisionShape(RigidBodyControl.java:134)
    at com.jme3.bullet.control.RigidBodyControl.setSpatial(RigidBodyControl.java:109)
    at com.jme3.scene.Spatial.addControl(Spatial.java:572)
    at arcade.race.sample.PhysicsTestHelper.createPhysicsTestWorld(PhysicsTestHelper.java:68)
    at arcade.race.sample.ArcadeCarSample.simpleInitApp(ArcadeCarSample.java:170)
    at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:230)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:124)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:200)
    at java.lang.Thread.run(Thread.java:679)

Original issue reported on code.google.com by Niclas.H...@gmail.com on 13 Aug 2011 at 9:03

GoogleCodeExporter commented 8 years ago
I am sorry, I was wrong. The Q3 Test works. I get this exception if I try to 
generate a MeshCollisionShape from my simple race track that I load directly 
from a blender file.

Maybe this is an issue with the blender importer then, but I am doing something 
wrong probably. I'll ask an the forums. I think this issue can be closed :-)

Original comment by Niclas.H...@gmail.com on 13 Aug 2011 at 9:12

GoogleCodeExporter commented 8 years ago
Alright, it's closed. Thanks for testing the Blender Loader. Please add your 
feedback to the forum.

Original comment by e.so...@gmail.com on 13 Aug 2011 at 10:24