jmonkeyengine icon indicating copy to clipboard operation
jmonkeyengine copied to clipboard

IllegalStateException from software skinning with zero weights per vertex

Open stephengold opened this issue 5 years ago • 3 comments

@oxplay2 reported the following crash in SkinningControl (new animation system):

mar 14, 2020 9:56:14 AM com.jme3.app.LegacyApplication handleError
SEVERE: Uncaught exception thrown in Thread[main,5,main]
java.lang.IllegalStateException: Max weights per vert is incorrectly set!
at com.jme3.anim.SkinningControl.applySkinning(SkinningControl.java:464)
at com.jme3.anim.SkinningControl.softwareSkinUpdate(SkinningControl.java:446)
at com.jme3.anim.SkinningControl.controlRenderSoftware(SkinningControl.java:263)
at com.jme3.anim.SkinningControl.controlRender(SkinningControl.java:303)
at com.jme3.scene.control.AbstractControl.render(AbstractControl.java:118)

I'm guessing mesh.getMaxNumWeights() returned 0. He says the same scene renders fine with hardware skinning. Perhaps SkinningControl should simply skip over meshes without weights.

stephengold avatar Mar 23 '20 21:03 stephengold

Another possibility is that mesh had bone weights but mesh.maxNumWeights wasn't set correctly.

stephengold avatar Mar 23 '20 21:03 stephengold

Any progress on this issue so far?

pavly-gerges avatar Jan 30 '24 23:01 pavly-gerges

@Scrappers-glitch not that I'm aware of. Note that the issue isn't assigned to anyone.

stephengold avatar Jan 31 '24 00:01 stephengold