Menu

Collada animation exported from Blender

2010-05-20
2013-06-03
  • Luzak Wielki

    Luzak Wielki - 2010-05-20

    Witam . Mam problem z animacją z użyciem plików Collada eksportowanych z Blender 2.49/2.5 (z 2.49 assimp nie wczytuje animacji, z 2.50 animacja jest wczytana, ale jest zepsuta).
    Jeśli użyję pliku astroBoy_walk.dae ściągniętych z Collada.org animacja jest ok, ale nie mogę zrobić sam  animacji z kośćmi z blenderem.
    Jest jakiś sposób, aby wyeksportować z blendera animację działającą w Assimp?

     
  • Luzak Wielki

    Luzak Wielki - 2010-05-20

    Hello. I have a problem with the animation with Collada files exported from Blender 2.49/2.5 (2.49 assimp the animation is not loaded, the animation is loaded 2.50 but is broken).
    If I use a file downloaded from Collada.org astroBoy_walk.dae animation is ok, but I can not do the same animation with bones from the blender.
    Is there any way to export from blender animation acting Assimp?

     
  • Christopher Dissauer

    Hi!

    I just stumbled over the same problem; after a bit of debugging in the library I was able to discover the following bug:

    Version: assimp-1.1.700
    File: ColladaParser.cpp
    Line: 1725
    Function: void ColladaParser::ReadAccessor( const std::string& pID)

    The original code:

    int attrType = TestAttribute( "type");
    if( attrType)

    should be changed to

    int attrType = TestAttribute( "type");
    if( attrType > -1)

    The problem here is, that TestAttribute() returns -1 whenever the given attribute name was not found, and a return value of zero is a perfectly valid location for the attribute index. Blender happens to export the accessor's parameter type before its name (with index 0), so the whole parameter is ignored.

    Hope that helps,

      Chris

     
  • Alexander Gessler

    Hi,

    Chris, I just committed this as r733. Thanks you very much for the quick bug fix :-)
    luzakwielki, could you please check if your problems are gone as well?

    Bye, Alex

     

Log in to post a comment.