Also a convoluted but much more reliable workflow is to upload your model on sketchfab.com set it as downloadable then download the gltf sketchfab generates for you. You can set the model in private so that nobody can see it.
I tried the alternate KupomanGLTF exporter and it was able export all of my animations, except they were all distorted in the engine as if I hadn’t applied the location/rotation/scale in blender, so that didn’t work either. This was about 2-3 weeks ago though, so maybe something has changed with their exporter since then
@nehon I didn’t know about the Sketchfab workflow, but that sounds like the best way to export multiple animations at once for now , at least until the blender GLTF exporter is updated, thanks!
Drag your gltf files on it (gltf + bin file + textures if any)
Or maybe you have errors when you upload it?
About your model on sketchfab, it takes forever to generate the gltf I don’t know why. But I know the person that might know why. I will keep you posted.
And if you feel adventurous it’s already available in the monkanim branch of the engine. Just know it’s an utterly unstable branch and things may break from one commit to another.
I also ran into a bit of trouble using Sketchfab’s converter and have an issue opene on their forums currently.
Although have you tried the Khronos GLTF exporter since it’s been updated? They finally released a version that’s working enough that I can export a fully animated model from blender into JME very quickly and without needing to use NLA tracks
Yes, that’s the script I am using but with 2.79b blender. I cant figure out if your supposed to use actions or nla strips, bake or not, apply modifiers or not, blah blah blah. I have tried every setting on and off and it always results in as Konstantin_Denisov reported or worse.
If you do as instructed, nothing is exported. Have to bake on export and then you get a non playable action in your .blend and one in the AnimControl that doesn’t play.
I ran though every setting again and no different then the released script.
I made a model and gave it a skeleton, assigned vertex groups to each bone and left the armature modifier set but not applied. Then if I make any new animations in the action editor, they all get imported to the engine without having to do anything else.
Occasionally I’ll have one animation that doesn’t make it out of blender, but If I just create a new animation and copy the key frames over then then it works.
I also noticed that you need to set the frame start and end time equal to the values of your longest animation. My longest animatino is a walk animation that’s 30 frames, so i have to have the end frame set to 30 at export time or it will be shortened when it makes it into JME.
Hello
I have problems with animation for this model.
It works on https://sketchfab.com as you see, and it works on https://gltf-viewer.donmccurdy.com/
also I converted its to j3o
But I cant open it. I think it happens because clothes on this character have animation but don’t have bones.
It is separated objects what copied from parts of character and changed to have view of clothes and have animation.
Exception:
0:164(1): preprocessor error: #error NUM_BONES must be between 1 and 255.
at com.jme3.renderer.opengl.GLRenderer.updateShaderSourceData(GLRenderer.java:1269)
at com.jme3.renderer.opengl.GLRenderer.updateShaderData(GLRenderer.java:1296)
at com.jme3.renderer.opengl.GLRenderer.setShader(GLRenderer.java:1360)
at com.jme3.material.logic.SinglePassAndImageBasedLightingLogic.render(SinglePassAndImageBasedLightingLogic.java:237)
at com.jme3.material.Technique.render(Technique.java:166)
at com.jme3.material.Material.render(Material.java:974)
at com.jme3.renderer.RenderManager.renderGeometry(RenderManager.java:614)
at com.jme3.renderer.queue.RenderQueue.renderGeometryList(RenderQueue.java:266)
at com.jme3.renderer.queue.RenderQueue.renderQueue(RenderQueue.java:305)
at com.jme3.renderer.RenderManager.renderViewPortQueues(RenderManager.java:877)
at com.jme3.renderer.RenderManager.flushQueue(RenderManager.java:779)
at com.jme3.renderer.RenderManager.renderViewPort(RenderManager.java:1108)
at com.jme3.renderer.RenderManager.render(RenderManager.java:1158)
at com.jme3.app.SimpleApplication.update(SimpleApplication.java:253)
at com.jme3.jfx.injfx.JmeToJfxApplication.update(JmeToJfxApplication.java:31)
at com.ss.editor.JmeApplication.update(JmeApplication.java:384)
at com.jme3.system.lwjgl.LwjglWindow.runLoop(LwjglWindow.java:494)
at com.jme3.system.lwjgl.LwjglWindow.run(LwjglWindow.java:577)
at com.jme3.system.lwjgl.LwjglWindow.create(LwjglWindow.java:418)
at com.jme3.jfx.injfx.JmeOffscreenSurfaceContext.create(JmeOffscreenSurfaceContext.java:215)
at com.jme3.app.LegacyApplication.start(LegacyApplication.java:463)
at com.jme3.app.LegacyApplication.start(LegacyApplication.java:424)
at com.jme3.app.SimpleApplication.start(SimpleApplication.java:125)
at com.ss.editor.JfxApplication.startJmeApplication(JfxApplication.java:184)
at com.ss.editor.JfxApplication.lambda$main$0(JfxApplication.java:143)
at java.base/java.lang.Thread.run(Thread.java:844)