fbx2egg

For a simple test object (with 2 bones) I’ve managed to:
-export the model from my modeling package to fbx
-export the animation for it to egg (using the exporter that ships with the panda sdk)
-convert the fbx model to egg
-use the animation with the converted model

I’m only converting the data written in the fbx to a egg format so in theory it all should look the same - and at a glance it looks at least similar. Things move, the mesh doesn’t explode so I’ll call it a success :mrgreen:

The converted egg files aren’t identical to the exported ones because the converted have more verts (will look into this, but I trust the loader to optimize the mesh anyway). The exported egg uses matrixes… em matrixeses… matrices(??) and the converted got RotX Translate etc.

The code is getting a bit ugly (42 for loops :smiley: ), but as long as it works I don’t care much.

I will take a shot at animations after dinner, but I think I’ll need to google a bit to find out what KeyAttrFlags and KeyAttrDataFloat is in the fbx file.