Thanks to the community, I was able to export my character (character.mesh, character.mesh.xml, character.skeleton, character.skeleton.xml, character.material) to jMonkey. My question is, how do I export my animations? I made them in Blender’s action editor.
I have tried using the code from “Hello animation” and I have my animations called Walk, and stand. (Case sensitive).
The code blows up in my face, with a throw exception.
It will not let me add a listener to an AnimControl.
control = player.getControl(AnimControl.class);
Works, however it will not let me execute
Please note that player is a node, and control is an AnimControl.
I don’t know what i’m doing wrong.
Also, should I convert my .mesh.xml files to .j3o?
And must the skeleton be imported? It did not need to be in the example, so I assumed it wouldn’t need to be.
Thanks normen, it looks like it may fix my problem!
And I apologise for being such an annoyance, as I’m only 16.
Me and my friends are programming our first 3D game, which is an RPG with multiplayer. I am the 3D guy on the project right now, not lead coder, but I am also a coder, so that is why I am having troubles. 3D is not my strong suit
Fixed it. I applied the rotation, scale, etc AFTER making the animation so I was under the influence that it wasn’t the fix.
Want to thank you guys, especially normen, as that fixed it!
So, you’ll probably be seeing more posts from me, but luckily they shouldn’t be too hard to answer.
I want to attach a mesh to the body I just loaded. Like, a sword to the hand bone.
Any tips on how to do that? No, I’ve not looked that up at all, just saving time
I see many forum posts about it though, shouldn’t be too hard.