Blender Git Loki
Git Commits -> Revision 4a045e6
Revision 4a045e6 by Gaia Clary April 17, 2018, 08:59 (GMT) |
Refactor Collada: Major rewrite of the AnimationExporter * Mostly reorganized the classes and made them more readable. * The animation sampler now can be used for any animation curve. Before the sampler only looked at curves which are supported by Standard Collada 1.4. However the Collada exporter currently ignores all animation curves which are not covered by the 1.4.1 Collada Standards. There is still some room for improvements here (work in progres) * Removed some unnecessary dependencies and cleaned up many functions which have become unnecessary and no longer used. * moved functions between classes to better match the class responsibilities. * took care that the functions are kept small and understandable * removed intermediate structures which are no longer needed * cleanly separated the Animation sample part from the Collada part so that they can be treated independently from each other Known issues: * Some exports do currently not work reliably, among those are the camera animations, material animations and light animations those animations will be added back next (work in progres) * Exporting animation curves with keyframes (and tangents) sometimes results in odd curves (when parent inverse matrix is involved) This needs to be checked in more depth. * Export of "all animations in scene" is disabled because the Collada Importer can not handle this reliably at the moment (work in progres). |
Commit Details:
Full Hash: 4a045e67014d05cc2d3c1936eb1eaf9f152b3aef
Parent Commit: a28de91
Lines Changed: +945, -1262
8 Modified Paths:
/source/blender/collada/AnimationExporter.cpp (+272, -272) (Diff)
/source/blender/collada/AnimationExporter.h (+17, -9) (Diff)
/source/blender/collada/BCAnimationCurve.cpp (+342, -289) (Diff)
/source/blender/collada/BCAnimationCurve.h (+58, -134) (Diff)
/source/blender/collada/BCAnimationSampler.cpp (+161, -148) (Diff)
/source/blender/collada/BCAnimationSampler.h (+56, -72) (Diff)
/source/blender/collada/BCSampleData.cpp (+29, -218) (Diff)
/source/blender/collada/BCSampleData.h (+10, -120) (Diff)
/source/blender/collada/AnimationExporter.h (+17, -9) (Diff)
/source/blender/collada/BCAnimationCurve.cpp (+342, -289) (Diff)
/source/blender/collada/BCAnimationCurve.h (+58, -134) (Diff)
/source/blender/collada/BCAnimationSampler.cpp (+161, -148) (Diff)
/source/blender/collada/BCAnimationSampler.h (+56, -72) (Diff)
/source/blender/collada/BCSampleData.cpp (+29, -218) (Diff)
/source/blender/collada/BCSampleData.h (+10, -120) (Diff)