Take the 2-minute tour ×
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It's 100% free, no registration required.

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..

share|improve this question

migrated from gamedev.stackexchange.com Jun 27 '13 at 4:04

This question came from our site for professional and independent game developers.

1  
I have never used collada but perhaps you can get some tips from this answer. –  iKlsR Jun 27 '13 at 13:04
    
I could use x format as it is also supported by AssImp, however there seems to be no built in support for it in Blender. Is there a plugin or something I need? –  gareththegeek Jun 27 '13 at 16:13
    
Blender has a .x exporter. Did you read the answer? :) –  iKlsR Jun 27 '13 at 16:18
    
Sorry, I can't read apparently! I'll give that a go and see how I get on, thanks! –  gareththegeek Jun 27 '13 at 16:22

1 Answer 1

up vote 2 down vote accepted

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!

share|improve this answer
    
Do try a build from builder.blender.org . Some fixes to animation export where done, perhaps this is now fixed. –  jesterKing Jun 28 '13 at 12:41
    
Can you reword your question a bit to fit with your answer, just slightly. At the moment both are different. –  iKlsR Jun 28 '13 at 17:48
    
@iKlsR I don't follow you –  gareththegeek Jun 30 '13 at 8:31
    
@jesterKing I updated yesterday and now the problem is resolved, I can use x or collada format without problems –  gareththegeek Jun 30 '13 at 8:32
    
@gareththegeek in the question, you ask about collada but in the answer, you accept .x. Since you say it now works, you can update the answer. –  iKlsR Jun 30 '13 at 13:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.