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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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?
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:
should be changed to
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
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