Blender animation to JMonkey

I realize this is not something that will be directly answered here, but I do still have a few questions:

  1. Is there any good resource on how to effectively get an animation from Blender to work in JMonkey. (I can get the included animations from blender to work, the issues is making my own animations). I believe this is because there are a lot of very specific requirements in Blender that must be met in order to have the animation work properly in JME3.

  2. In the Hello Animation tutorial there is a link to a tutorial on making animations in Blender. The link is broken. While there are other animation tutorials out there making the animation isn’t difficult, however I get errors when trying to export it via Ogre XML, or it will export properly but without all the proper required files.

  3. In short, I want to know how to get an existing animation in a .blend file into a JME project. What criteria must be met in Blender for the export to work properly? And is there a way to do this without using Ogre XML?

Thanks in advance.

https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:external:blender

Thanks, not sure how I missed that page but it’s exactly what I needed.

I’ll pass this around to others I know had the same question. Thanks again Normen.

I get this error when trying to export the animation. I was getting this prior to asking the question which led me to believe I was doing it wrong, but now after having followed those instructions carefully I believe something else is wrong here.

Might I have installed OgreXML wrong? I can successfully export my scene or other objects, I’ve only had trouble with animations?

What happens if you try to load the blend directly?

@leigero said: I get this error when trying to export the animation. I was getting this prior to asking the question which led me to believe I was doing it wrong, but now after having followed those instructions carefully I believe something else is wrong here.

Might I have installed OgreXML wrong? I can successfully export my scene or other objects, I’ve only had trouble with animations?

Try this one https://blender2ogre.googlecode.com/hg/io_export_ogreDotScene.py

Mifth,

That was very helpful. I’m so close I can taste it. That took away all the errors I was getting and now it appears to be exporting properly. I’m not sure why the version I downloaded didn’t have that file, I have a very recent ogre script. I just have one issue now. I’m exporting a single cube which bends (for testing purposes).

Using the mesh.xml file seems to work, but when i try to set the animation:
[java]
object.setAnim(“Bend”);
[/java]

I get the error: "Cannot find the animation named: “Bend” even though I have only one animation, and it’s named Bend. Am I naming the animation improperly or not effectively saving it right?

@leigero This is the proper way to animate in blender:

[video]http://www.youtube.com/watch?v=NdjC9sCRV0s[/video]

It works now. Thanks Pixelapp. I’m so excited.

Apparently the ONLY thing I was lacking:

  1. I had to go into the NLA Editor mode in Blender and click the snowflake next to the animation. Not sure what exactly that is doing, but it made it work. So I’ll keep that in mind!