Okay, I’ve spent a few hours investigating this problem (as I didn’t want to ditch Panda3D) and I’ve finally been able to get an animation from C4D into Panda3D. I’ve listed the steps I used for anyone else trying to get an animation from Cinema4D into Panda3D. Note: I have not been able to replicate this success with any bone-based animation thus far. [color=red](EDIT - I’ve had some success since posting this… watch this space. )
First of all I needed to get a 3rd party X exporter from here: spackenz.de/~philipp/.
Secondly, I could NOT use bones. The animation is of two seperate objects. I moved the object axis of one of the objects so that it became an ‘elbow’ between the two objects and then rotated the object around that.
I then set up a short animation to move the object around its axis (so it looked like a bending leg). Once I’d set that up, I exported the file using the X-exporter plugin above (X-file Export). Note: I unchecked “Export Bones” and “Only Bones” in the exporter’s dialogue.
Now onto converting it into two egg files.
For an animation we need the model file and the animation file, so to seperate the x file into the two required files I used x2egg with the “-model” and “-anim” flags as follows:
x2egg -model arm.x armmodel.egg
x2egg -anim arm.x armanim.egg
Once I’d done that, I tested it in the panda preview:
pview armmodel armanim
HOORAY! It worked!