Blender Git Loki

Git Commits -> Revision 44e5b77

Revision 44e5b77 by Joshua Leung (master)
January 17, 2009, 03:12 (GMT)
2.5: Blender "Animato" - New Animation System

Finally, here is the basic (functional) prototype of the new animation system which will allow for the infamous "everything is animatable", and which also addresses several of the more serious shortcomings of the old system. Unfortunately, this will break old animation files (especially right now, as I haven't written the version patching code yet), however, this is for the future.

Highlights of the new system:
* Scrapped IPO-Curves/IPO/(Action+Constraint-Channels)/Action system, and replaced it with F-Curve/Action.
- F-Curves (animators from other packages will feel at home with this name) replace IPO-Curves.
- The 'new' Actions, act as the containers for F-Curves, so that they can be reused. They are therefore more akin to the old 'IPO' blocks, except they do not have the blocktype restriction, so you can store materials/texture/geometry F-Curves in the same Action as Object transforms, etc.
* F-Curves use RNA-paths for Data Access, hence allowing "every" (where sensible/editable that is) user-accessible setting from RNA to be animated.
* Drivers are no longer mixed with Animation Data, so rigs will not be that easily broken and several dependency problems can be eliminated. (NOTE: drivers haven't been hooked up yet, but the code is in place)
* F-Curve modifier system allows useful 'large-scale' manipulation of F-Curve values, including (I've only included implemented ones here): envelope deform (similar to lattices to allow broad-scale reshaping of curves), curve generator (polynomial or py-expression), cycles (replacing the old cyclic extrapolation modes, giving more control over this). (NOTE: currently this cannot be tested, as there's not access to them, but the code is all in place)
* NLA system with 'tracks' (i.e. layers), and multiple strips per track. (NOTE: NLA system is not yet functional, as it's only partially coded still)

There are more nice things that I will be preparing some nice docs for soon, but for now, check for more details:
http://lists.blender.org/pipermail/bf-taskforce25/2009-January/000260.html

So, what currently works:
* I've implemented two basic operators for the 3D-view only to Insert and Delete Keyframes. These are tempolary ones only that will be replaced in due course with 'proper' code.
* Object Loc/Rot/Scale can be keyframed. Also, the colour of the 'active' material (Note: this should really be for nth material instead, but that doesn't work yet in RNA) can also be keyframed into the same datablock.
* Standard animation refresh (i.e. animation resulting from NLA and Action evaluation) is now done completely separate from drivers before anything else is done after a frame change. Drivers are handled after this in a separate pass, as dictated by depsgraph flags, etc.

Notes:
* Drivers haven't been hooked up yet
* Only objects and data directly linked to objects can be animated.
* Depsgraph will need further tweaks. Currently, I've only made sure that it will update some things in the most basic cases (i.e. frame change).
* Animation Editors are currently broken (in terms of editing stuff). This will be my next target (priority to get Dopesheet working first, then F-Curve editor - i.e. old IPO Editor)
* I've had to put in large chunks of XXX sandboxing for old animation system code all around the place. This will be cleaned up in due course, as some places need special review.
In particular, the particles and sequencer code have far too many manual calls to calculate + flush animation info, which is really bad (this is a 'please explain yourselves' call to Physics coders!).

Commit Details:

Full Hash: 44e5b7788bcbe55400bf0d91eed0752ed865b644
SVN Revision: 18546
Parent Commit: 9bcdb4b
Lines Changed: +4077, -1737

5 Added Paths:

/source/blender/blenkernel/BKE_animsys.h (+34, -0) (View)
/source/blender/blenkernel/BKE_fcurve.h (+100, -0) (View)
/source/blender/blenkernel/intern/anim_sys.c (+549, -0) (View)
/source/blender/blenkernel/intern/fcurve.c (+1492, -0) (View)
/source/blender/makesdna/DNA_anim_types.h (+587, -0) (View)

63 Modified Paths:

/source/blender/blenkernel/BKE_action.h (+21, -43) (Diff)
/source/blender/blenkernel/BKE_constraint.h (+0, -10) (Diff)
/source/blender/blenkernel/BKE_ipo.h (+4, -0) (Diff)
/source/blender/blenkernel/intern/action.c (+206, -304) (Diff)
/source/blender/blenkernel/intern/anim.c (+2, -0) (Diff)
/source/blender/blenkernel/intern/armature.c (+0, -3) (Diff)
/source/blender/blenkernel/intern/constraint.c (+4, -153) (Diff)
/source/blender/blenkernel/intern/curve.c (+5, -3) (Diff)
/source/blender/blenkernel/intern/depsgraph.c (+26, -3) (Diff)
/source/blender/blenkernel/intern/ipo.c (+5, -0) (Diff)
/source/blender/blenkernel/intern/key.c (+49, -25) (Diff)
/source/blender/blenkernel/intern/lattice.c (+5, -2) (Diff)
/source/blender/blenkernel/intern/library.c (+3, -3) (Diff)
/source/blender/blenkernel/intern/material.c (+2, -0) (Diff)
/source/blender/blenkernel/intern/object.c (+82, -30) (Diff)
/source/blender/blenkernel/intern/particle.c (+14, -3) (Diff)
/source/blender/blenkernel/intern/particle_system.c (+27, -9) (Diff)
/source/blender/blenkernel/intern/pointcache.c (+2, -1) (Diff)
/source/blender/blenkernel/intern/scene.c (+40, -6) (Diff)
/source/blender/blenkernel/intern/seqeffects.c (+10, -6) (Diff)
/source/blender/blenkernel/intern/sequence.c (+16, -6) (Diff)
/source/blender/blenkernel/intern/texture.c (+8, -3) (Diff)
/source/blender/blenkernel/intern/world.c (+6, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+4, -4) (Diff)
/source/blender/editors/animation/anim_filter.c (+24, -24) (Diff)
/source/blender/editors/animation/anim_ops.c (+5, -0) (Diff)
/source/blender/editors/animation/keyframes_edit.c (+8, -57) (Diff)
/source/blender/editors/animation/keyframes_general.c (+36, -28) (Diff)
/source/blender/editors/animation/keyframing.c (+377, -679) (Diff)
/source/blender/editors/armature/editarmature.c (+23, -22) (Diff)
/source/blender/editors/armature/poselib.c (+13, -2) (Diff)
/source/blender/editors/armature/poseobject.c (+7, -1) (Diff)
/source/blender/editors/curve/editcurve.c (+4, -3) (Diff)
/source/blender/editors/gpencil/editaction_gpencil.c (+3, -3) (Diff)
/source/blender/editors/include/ED_anim_api.h (+1, -1) (Diff)
/source/blender/editors/include/ED_keyframes_edit.h (+4, -3) (Diff)
/source/blender/editors/include/ED_keyframing.h (+9, -15) (Diff)
/source/blender/editors/object/editconstraint.c (+6, -80) (Diff)
/source/blender/editors/object/editkey.c (+14, -9) (Diff)
/source/blender/editors/object/object_edit.c (+50, -30) (Diff)
/source/blender/editors/object/object_ops.c (+3, -1) (Diff)
/source/blender/editors/space_action/action_edit.c (+30, -27) (Diff)
/source/blender/editors/space_action/action_ops.c (+1, -0) (Diff)
/source/blender/editors/space_action/action_select.c (+4, -5) (Diff)
/source/blender/editors/space_view3d/drawarmature.c (+19, -19) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+26, -20) (Diff)
/source/blender/editors/space_view3d/view3d_draw.c (+1, -1) (Diff)
/source/blender/editors/transform/transform_conversions.c (+37, -65) (Diff)
/source/blender/editors/transform/transform_generics.c (+2, -4) (Diff)
/source/blender/makesdna/DNA_camera_types.h (+5, -2) (Diff)
/source/blender/makesdna/DNA_ipo_types.h (+11, -0) (Diff)
/source/blender/makesdna/DNA_key_types.h (+3, -1) (Diff)
/source/blender/makesdna/DNA_lamp_types.h (+4, -2) (Diff)
/source/blender/makesdna/DNA_material_types.h (+4, -2) (Diff)
/source/blender/makesdna/DNA_object_types.h (+12, -8) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+3, -0) (Diff)
/source/blender/makesdna/DNA_texture_types.h (+3, -1) (Diff)
/source/blender/makesdna/DNA_world_types.h (+3, -1) (Diff)
/source/blender/makesdna/intern/makesdna.c (+2, -0) (Diff)
/source/blender/render/intern/source/convertblender.c (+11, -1) (Diff)
/source/blender/render/intern/source/initrender.c (+2, -0) (Diff)
/source/blender/render/intern/source/texture.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+3, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021