Blender Loader: NPE in ArmatureModifier

If I try to view this model:

I get this exception:



at com.jme3.scene.plugins.blender.modifiers.ArmatureModifier.<init>(

at com.jme3.scene.plugins.blender.modifiers.ModifierHelper.readModifiers(

at com.jme3.scene.plugins.blender.objects.ObjectHelper.toObject(

at com.jme3.scene.plugins.blender.AbstractBlenderLoader.toObject(

at com.jme3.scene.plugins.blender.BlenderLoader.toObject(

at com.jme3.scene.plugins.blender.BlenderModelLoader.load(

at com.jme3.scene.plugins.blender.BlenderModelLoader.load(

at com.jme3.asset.DesktopAssetManager.loadAsset(

at com.jme3.asset.DesktopAssetManager.loadModel(

[catch] at com.jme3.gde.core.assets.SpatialAssetDataObject.loadAsset(

at com.jme3.gde.core.assets.actions.OpenModel$



At some point previously this model would load (without hair) but that was probably before the animation loading stuff was added.


OK fixed that :slight_smile:

The problem occured when the armature had no actions applied. Should work fine now.

1 Like

Thanks! I’ll test it here when it gets into the next nightly.

Did you happen to notice if she imported with hair or not? Before, that model always imported bald for some reason.

The hair was fine :slight_smile:

Hair and skin and everything. Very nice. Thanks.

Any idea when she will get her skeleton back? getControl(SkeletonControl.class) returns null. Just wondering if that’s a bug or just an unimplemented feature. I think I heard it’s just not implemented yet.

I didn’t check the skeleton.

Skeleton loading and animations are implemented so it should be there.

Its probably a bug :wink:

Ok, as per the other thread, I just double checked the whole loaded hierarchy for any controls and found none. So for some reason, that model is loaded without a skeleton control.

Just in case, here were my steps:

  1. right click the female.blend in JMP and select “Convert to j3o binary”
  2. have my code load the .j3o file… model = assetManager.loadModel(“pathtomy.j3o”)
  3. traverse the spatial hierarchy and dump all of the controls to see what they had.

    For my old ogre converted model I get a SkeletonControl and an AnimationControl… but not for the blender plugin converted one.

    Thanks for any help. Really looking forward to having hair and a reliable blender import path.

It’s already possible to import a bone setup with or without animations? I can’t see the animcontrol/skeletoncontrol nodes in SceneExplorer :/.