Importing Model breaks Animation

Hey Guys,
I know this is rather a case to annoy @Kaelthas with but since it yields a Material Error instead of some proper error handling it might also be nice to handle that at loading-time.

Aand maybe to see what is so terribly wrong that the importer can’t import.

java.lang.IllegalArgumentException: for uniform m_BoneMatrices: value cannot be null
    at com.jme3.shader.Uniform.setValue(Uniform.java:210)
    at com.jme3.material.Material.updateShaderMaterialParameters(Material.java:804)
    at com.jme3.material.Material.preload(Material.java:844)
    at com.jme3.renderer.RenderManager.preloadScene(RenderManager.java:665)
    at com.jme3.renderer.RenderManager.preloadScene(RenderManager.java:656)
    at com.jme3.animation.SkeletonControl.testHardwareSupported(SkeletonControl.java:164)
    at com.jme3.animation.SkeletonControl.controlRender(SkeletonControl.java:281)
    at com.jme3.scene.control.AbstractControl.render(AbstractControl.java:135)
    at com.jme3.scene.Spatial.runControlRender(Spatial.java:756)
    at com.jme3.renderer.RenderManager.renderSubScene(RenderManager.java:723)
    at com.jme3.renderer.RenderManager.renderSubScene(RenderManager.java:733)
    at com.jme3.renderer.RenderManager.renderSubScene(RenderManager.java:733)
    at com.jme3.renderer.RenderManager.renderSubScene(RenderManager.java:733)
    at com.jme3.renderer.RenderManager.renderSubScene(RenderManager.java:733)
    at com.jme3.renderer.RenderManager.renderScene(RenderManager.java:712)
    at com.jme3.renderer.RenderManager.renderViewPort(RenderManager.java:1086)
    at com.jme3.renderer.RenderManager.render(RenderManager.java:1145)
    at com.jme3.app.SimpleApplication.update(SimpleApplication.java:253)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:151)
    at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:193)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:232)
    at java.lang.Thread.run(Thread.java:745)

The crazy thing is: Everything works well (I see the SkeletonControl, I see the Animation Tracks in AnimationControl etc) but it seems soley the bone matrix is missing?

Hi @Darkchaos

can you upload the model you’re using ? I’ll check that out.

Hey @Kaelthas,
It’s still the same model from the other issues (the one with the transparency issue),

However, this had nothing to do with your Import but the Hardware Skinning destroying j3o files (errors in serialization and serializing things regenerated per frame).

I’ll try my best to have it done this week :slight_smile:

Okay, unfortunately this didn’t fix the issue @Kaelthas.
I guess it’s that I am using some unsupported keyframe curve type or something (but not on purpose).

Just try to play the Animation of the Model you are working on (from Github)

Edit: See jMonkeyEngine/sdk/#69 Part 1. That’s the same I suspect so for some reason it only works when you start all controls at once but it used to work with alpha1, so not sure if it’s related to the importer until I’ve tested ogre, but yeah, maybe you see something obvious