Blender Git Loki

Git Commits -> Revision 99ea0a5

Revision 99ea0a5 by Gaia Clary
April 16, 2018, 19:14 (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: 99ea0a5b2452d442d5bfdd246399632d9eec3712
Parent Commit: ece21d8
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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021