when I upload my models without animation, everything is fine.
But when I try to upload any model with animation, it does not work.
First I tried to use Orge exporter and spent a day checking what is wrong.
There all data is exported without problems, but crashes, when I try to start animation in JME.
Reading forum, most people recommend to use JME menu “File-Import Model”.
After some tries I get model exported from Blender without errors, but JME crashes while trying to play animations:
(Block at lines 58-60 is the one causing it)
It seems that your Node “simple” has no AnimationControl.
Could you post a screenshot of the scene composer “scene explorer” (usually bottom left corner of your window) with all items expanded?
My guess would be that not your loaded model, but rather a sub-node has the anim control.
This is expected. Maybe the Blender Exporter has a setting to only export the “selected mesh” or something.
What you can do is either deleting them in the blender scene (You aren’t rendering a video and as such you don’t need really need lights and such, or at least you can always remove them and re/add them or keep two separate files).
Three other things: Deleting Scene would remove everything below that, which is not what you want. You would remove Lamp and Camera and possibly Armature.
The second: The SDK has a Ogre Script as well, which you can use to install to blender somewhere under the tools menu. And it comes bundled with a blender.
The Third: There are many other ways of importing the Model (Direct .blend import, xbuf), which are really helpful, so as part of learning you could try to understand them as well.
Oh and the fourth: Your code would need ((Node)spatial).getChild("Object").getControl(AnimControl.class)
I was referencing the troubles for exporting with Ogre.
I went through this same nightmare because of using the wrong Ogre script. Just using that wrong script 1 time screwed up the SDK for all importing of any file type unless I restarted the SDK. So the Ogre script was making it seem like the other methods were also messed up when they weren’t. Since he is using the fork and I know 0.6.0 does work, thought was worth a shot.
Ogre default setting is “Export selected only” so he can just select the model and rig and that’s all that gets exported.
I may be misunderstanding the comment, if so clarify please.