Which implies that the imported data has a mismatch in the animation keyframes. I suspect there is some set of options required in the Blender export operation to make the animations importable. I’ve tried various combinations of the timing and baking arguments but can’t seem to get it to work.
Reading back through the various topics about GLTF import I see a lot of discussion on importing animations and why it is hard. Has anyone had success export GLTF from Blender 2.8 then importing into JME? If so, do you have hints on what you know?
I feel it’d be worth having a section on the wiki about exporting GLTF scenes from Blender to JME to capture this information. There are equivalents for various other formats. I’d be happy to write it to make it easier for others - will start collecting findings as I go.
Well, look fine for me if its about informations. Good work! Just some mentions:
“Ultimately all jME projects should use the .j3o format for storing assets. However during development a format is required to export scenes from Blender in a format suitable for conversion (either through the SDK or directly through code).”
well, i dont think this sentence is necessary. maybe others will say if it should be here.
cant confirm all about .glb because myself i always export to .gltf
At export time, force the export to create interpolated keyframes using sampling. This can be done in Python using export_force_sampling=True or selecting Always Sample Animations in the Animation tab of the export function. By default a sample is created from each frame of the animation. This can be changed in Python using export_frame_step=n where n is number of frames between samples or changing the sampling rate in the Animation tab of the export function.
well, if i remember correctly i dont needed use it for “non IK animations” and anyway it didnt work for me well so needed bake animations anyway as i remember. but maybe they fixed it in new versions. Because as i understand this should do something like “Bake on export thing” if im not wrong. On their github there just is “Apply sampling to all animations.” but not sure about what sampling it is.
because currently i needed create dupplicated skeleton, bake animations on it, and export it, instead of oryginal skeleton. But if this is doing something else than i think then dont listen me.