Just started the tutorial About HelloAssets.
All fine when I use the original Ninja.msh.xml model, but when I convert to .j3o file this is what I get:
Same happend with other modles like Elephant but not with the town scene.
How are you converting the model? Code? Sdk?
SDK by right click convert to j3o Binary
Are you using SDK v3.3?
If so you might need to call applyBindPose() on Armature after loading the model.
I am using v3.3 and thx, it works now:
Spatial ninja = assetManager.loadModel("Models/Ninja/Ninja.mesh.j3o"); SkinningControl scNinja = ninja.getControl(SkinningControl.class); scNinja.getArmature().applyBindPose();
Is this something the SDK could easily support when converting?
Or is that only relevant when wanting to see the T-Pose?
Yes, can be done by calling
saveInitialPose() on Armature before exporting j3o.
SkinningControl sc = model.getControl(SkinningControl.class); sc.getArmature().saveInitialPose();
But is this something people would want? I mean is there a reason why this is not default?
That’s the default behavior for GltfLoader
Not sure why it is not the default for Ogre loader.
Does ogre even convert to the new system?
Then it might be best to solve this at Ogre Importer Level, right?
I guess adding
armature.saveInitialPose(); after below line should do the trick.