You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Models imported using the GltfLoader typically have 16-bit bone indices.
If a KinematicRagdollControl is added to such a model, a ClassCastException is thrown in RagdollUtils.
Here is a typical stack trace, courtesy of oxplay2:
SEVERE: Uncaught exception thrown in Thread[jME3 Main,5,main]
java.lang.ClassCastException: java.nio.DirectShortBufferU cannot be cast to java.nio.ByteBuffer
at com.jme3.bullet.control.ragdoll.RagdollUtils.getPoints(RagdollUtils.java:229)
at com.jme3.bullet.control.ragdoll.RagdollUtils.makeShapeFromVerticeWeights(RagdollUtils.java:203)
at com.jme3.bullet.control.KinematicRagdollControl.boneRecursion(KinematicRagdollControl.java:534)
at com.jme3.bullet.control.KinematicRagdollControl.scanSpatial(KinematicRagdollControl.java:515)
at com.jme3.bullet.control.KinematicRagdollControl.createSpatialData(KinematicRagdollControl.java:467)
at com.jme3.bullet.control.AbstractPhysicsControl.setSpatial(AbstractPhysicsControl.java:182)
at com.jme3.scene.Spatial.addControl(Spatial.java:769)
at test.RagdollTest3.simpleInitApp(RagdollTest3.java:130)
at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:220)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:130)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:211)
at java.lang.Thread.run(Thread.java:748)
The text was updated successfully, but these errors were encountered:
it was simple cube with one bone(p -> automatic weight) using Blender 2.79b.
Was working using blender exporter, but using gltf exporter was above exception.
Anyway KinematicRagdollControl will be replaced by DynamicAnimControl?
based on "If you’re on JME 3.2, you can start using DynamicAnimControl any time you want. You don’t have to wait for JME 3.3 to be released."
Models imported using the
GltfLoader
typically have 16-bit bone indices.If a
KinematicRagdollControl
is added to such a model, aClassCastException
is thrown inRagdollUtils
.Here is a typical stack trace, courtesy of oxplay2:
The text was updated successfully, but these errors were encountered: