I just exported a little animated roboter and exported it with chicken R91.
But when I try to load it:
self.loadModel("models/ralph")# just a test
self.loadAnims({"stand": "data/char1_stand.x",
"run": "data/char1_run.x",
"attack": "data/char1_hit.x"})
self.loop("attack")
if the model doesnt show up as such, you propably didnt reparent the model into the scene-graph.
the animation is missing because you moved objects. the chicken manual clearly states that the only supported animation are “armature” based, using the armature modifier.
My Anim is reparented to render, it works when I use something like Roaming Ralph e.g.
I use IPO curves and In chicken v 1 ( already Depreciated) IPO is supported: discourse.panda3d.org/viewtopic.php?p=20875
well… your egg file is 100% static. so it did not export any animation.
since your ipo-animation is not exported i recommend using armatures. they work for sure and you dont have to use a terribly outdated version.
I agree with ThomasEgi about using armature for two reasons:
1- armature is too accurate and you can also control it in Panda3D
2- if you join all the meshes of your model, the arm will not move, or if you make the moving arm is the last to join then you will find the whole mesh rotate (not the arm only)[/b]
But when I have a character and a sword ( both animated ). The sword should be exchangeable and at the moment they are two seperate objects.
Should I animate the sword also with armatures?
Animate a bone or an empty where the sword should be. Then you can attach the sword you want to that joint or empty.
The looking and gripping demo does it exactly the same way.