3

I am trying to get simple animations to work, exporting from Blender and importing into my application.

My first attempt was as follows:

  1. Open Blender at factory settings.
  2. Select the default cube and insert a location keyframe.
  3. Select another frame and move the cube.
  4. Insert a second location keyframe.
  5. Export to Collada.

When I open the Collada file using assimp it contains zero animations, even though in Blender the cube animates correctly.

On my next attempt, I inserted a bone armature with a single bone, made it the parent of the cube, and animated the bone instead. Again the animation worked correctly in Blender.

Assimp now lists one animation but both key frames have the position [0, 0, 0]

Does anyone have any suggestions as to how I can get animated (non-skinned) meshes from Blender into Assimp?

My ultimate goal here is to export animated meshes from Blender, process them offline into my own model format, and load them into my SharpDX based graphics engine..

1 Answers1

2

I tried performing the steps in v2.65 r53189 and it exports the animations correctly. It seems that in v2.66.1 r55078 the Collada export does not output the keyframes correctly.

In the end, I decided to take iKlsR's advice and use x format since it allows me to use the newest version of Blender and is still compatible with AssImp. It also allows me to flip the z and y axes which is a bonus!