Hi All,
Coming to JME after a long vacation about more than 3-4 years. I hope all of you are well in the era of the corona.
I see that the AnimControl class is marked as deprecated and replaced it with AnimComposor.
I was trying to use one but couldn’t find the way how to use it.
Whenever I try to get AnimComposor from model loaded from bland it returns null. but it correctly returns AnimControl.
Should I use AnimControl even though it is deprecated? or I missed something to use AnimComposer?
System information Product Version: jMonkeyEngine SDK 3.3.0-v3.3.0-beta1-sdk1-SNAPSHOT Updates: jMonkeyEngine SDK is updated to version NetBeans 8.2 Patch 2 Java: 11.0.7; Java HotSpot™ 64-Bit Server VM 11.0.7+8-LTS Runtime: Java™ SE Runtime Environment 11.0.7+8-LTS System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (jmonkeyplatform)
A null result is because the Blender loader does not support the new animation system.
You can use this method to migrate your model from old animation system to new one:
Note, If you convert your model into Gltf (which is recommended format) and then load it with JME it will automatically load your model with the new animation system.
GLTF support nlaStrips in the blender as animation-name in Jme just like using Xbuf?
I add a new animation to a skeleton but when I exported to Xbuf rotation of some bones will be crashed and other transforms were not working at all.
I applied transforms of mesh in object mode, and skeleton at positioning mode.
how can I solve it?
what is the best way to import blend file made in 2.79 into blender 2.82?
I think I can export mesh as a obj file and then append skeleton from blend file to it…
what about the second part of my question? how to solve wrong transform in playing animation?
Thanks @Ali_RS, AnimMigrationUtils is migrating controller to the composer and works fine. but it’s taking too much time to load/initialize the application.
So, I tried to export the converted spatial to a new j3o file using the below script.
And, yes I tried exporting the model to GLTF, there are 2-3 ways to do it in blender I tries all of them. but when I try to import it in JME the model looks black, it may be I am using latest blender version!!