[Bf-blender-cvs] CVS commit: blender/source/blender/blenkernel BKE_lattice.h blender/source/blender/blenkernel/intern action.c armature.c depsgraph.c lattice.c nla.c object.c blender/source/blender/blenloader/intern readfile.c writefile.c blender/source/blender/include BIF_editnla.h blender/source/blender/makesdna ...

Ton Roosendaal ton at blender.org
Tue Oct 31 16:51:57 CET 2006


ton (Ton Roosendaal) 2006/10/31 16:51:57 CET

  Modified files:
    blender/source/blender/blenkernel BKE_lattice.h 
    blender/source/blender/blenkernel/intern action.c armature.c 
                                             depsgraph.c lattice.c 
                                             nla.c object.c 
    blender/source/blender/blenloader/intern readfile.c 
                                             writefile.c 
    blender/source/blender/include BIF_editnla.h 
    blender/source/blender/makesdna DNA_action_types.h 
                                    DNA_nla_types.h 
    blender/source/blender/src drawnla.c editnla.c 
  
  Log:
  Two wonderful new NLA & Armature editing features!
  
  - FORWARD CYCLING & MATCHING
  
  Up to no now, adding multiple actions in NLA with walkcycles required to
  animate them standing still, as if walking on a conveyor belt. The stride
  option then makes the object itself move forward, trying to keep the foot
  stuck on the floor (with poor results!).
  This option now allows to make walk cycles moving forward. By
  indicating a reference Offset Bone, the NLA system will use that bone to
  detect the correct offset for the Armature Pose to make it seamlessly going
  forward.
  
  Best of all, this option works as for cyclic Action Strips as well as for
  individual Action Strips. Note that for individual strips, you have to set
  the strip on "Hold". (Might become automatic detected later).
  
  Here's an example edit image for NLA:
  http://www.blender.org/bf/nla_match-cycle.jpg
  And the animation for it:
  http://download.blender.org/demo/test/2.43/0001_0150_match.avi
  Blender file:
  http://download.blender.org/demo/test/2.43/mancandy_matching.blend
  
  Using this kind of cycling works pretty straightforward, and is a lot
  easier to setup than Stride Bones.
  
  To be further tested:
  - Blending cycles
  - matching rotation for the bones as well.
  
  - ACTION MODIFIERS (motion deformors)
  
  The above option was actually required for this feature. Typically walk
  cycles are constructed with certain Bones to be the handles, controlling
  for example the torso or feet.
  An Action Modifier allows you to use a Curve Path to deform the motion of
  these controlling bones. This uses the existing Curve Deformation option.
  Modifiers can be added per Action Strip, each controlling a channel (bone)
  by choice, and even allows to layer multiple modifiers on top of each other
  (several paths deforming motion). This option is using the dependency graph,
  so editing the Curve will give realtime changes in the Armature.
  
  The previous walkcycle, controlled by two curves:
  http://download.blender.org/demo/test/2.43/0001_0150_deform.avi
  Blender file:
  http://download.blender.org/demo/test/2.43/mancandy_actiondeform.blend
  
  Action Modifiers can be added in the NLA Properties Panel. Per Modifier you
  have to indicate the channel and a Curve Object. You can copy modifiers from
  one strip to another using CTRL+C (only copies to active Object strips).
  
  Setting up a correct Curve Path has to be carefully done:
  - Use SHIFT+A "Curve Path" in top view, or ensure the path is not rotated.
  - make sure the center point of the Curve Object is at the center of the
    Armature (or above)
  - move the first point of the curve to the center point as well.
  - check if the path starts from this first point, you can change it using
    (in Curve EditMode) the option Wkey -> "Switch Direction"
  - Make sure alignment uses the correct axis; if the Armature walks into
    the negative Y direction, you have to set in Object Buttons, "Anim settings"
    Panel, the correct Track option. (Note; option will probably move to the
    Modifier later).
  
  This is a good reason to make such paths automatic (on a command). Is on the
  todo list.
  
  Also note this:
  - the Curve Path extends in beginning and ending, that's (for now) the default,
    and allows to use multiple paths. Make sure paths begin and end horizontal.
  - Moving the Curve in Object Mode will change the "mapping" (as if the landscape
    a character walks over moves). Moving the Curve in Edit Mode will change the
    actual position of the deformation.
  - Speed (Ipos) on paths is not supported yet, will be done.
  - The Curve "Stretch" deform option doesn't work.
  - Modifiers are executed *after* all actions in NLA are evaluated, there's no
    support yet for blending multiple strips with Modifiers.
  - This doesn't work yet for time-mapping...
  
  This commit is mostly for review by character animators... some details or
  working methods might change.
  This feature can also be used for other modifiers, such as noise (Perlin) or
  the mythical "Oomph" (frequency control) and of course Python.
  
  Special thanks to Bassam & Matt for research & design help. Have fun!
  
  Revision  Changes    Path
  1.18      +7 -2      blender/source/blender/blenkernel/BKE_lattice.h
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenkernel/BKE_lattice.h.diff?r1=1.17&r2=1.18&cvsroot=bf-blender>
  1.56      +231 -81   blender/source/blender/blenkernel/intern/action.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenkernel/intern/action.c.diff?r1=1.55&r2=1.56&cvsroot=bf-blender>
  1.77      +37 -2     blender/source/blender/blenkernel/intern/armature.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenkernel/intern/armature.c.diff?r1=1.76&r2=1.77&cvsroot=bf-blender>
  1.55      +11 -2     blender/source/blender/blenkernel/intern/depsgraph.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenkernel/intern/depsgraph.c.diff?r1=1.54&r2=1.55&cvsroot=bf-blender>
  1.36      +73 -18    blender/source/blender/blenkernel/intern/lattice.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenkernel/intern/lattice.c.diff?r1=1.35&r2=1.36&cvsroot=bf-blender>
  1.7       +16 -2     blender/source/blender/blenkernel/intern/nla.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenkernel/intern/nla.c.diff?r1=1.6&r2=1.7&cvsroot=bf-blender>
  1.109     +8 -1      blender/source/blender/blenkernel/intern/object.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenkernel/intern/object.c.diff?r1=1.108&r2=1.109&cvsroot=bf-blender>
  1.297     +16 -3     blender/source/blender/blenloader/intern/readfile.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenloader/intern/readfile.c.diff?r1=1.296&r2=1.297&cvsroot=bf-blender>
  1.74      +7 -2      blender/source/blender/blenloader/intern/writefile.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenloader/intern/writefile.c.diff?r1=1.73&r2=1.74&cvsroot=bf-blender>
  1.16      +2 -1      blender/source/blender/include/BIF_editnla.h
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/include/BIF_editnla.h.diff?r1=1.15&r2=1.16&cvsroot=bf-blender>
  1.29      +4 -2      blender/source/blender/makesdna/DNA_action_types.h
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/makesdna/DNA_action_types.h.diff?r1=1.28&r2=1.29&cvsroot=bf-blender>
  1.11      +25 -2     blender/source/blender/makesdna/DNA_nla_types.h
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/makesdna/DNA_nla_types.h.diff?r1=1.10&r2=1.11&cvsroot=bf-blender>
  1.32      +119 -18   blender/source/blender/src/drawnla.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/drawnla.c.diff?r1=1.31&r2=1.32&cvsroot=bf-blender>
  1.64      +40 -2     blender/source/blender/src/editnla.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/editnla.c.diff?r1=1.63&r2=1.64&cvsroot=bf-blender>



More information about the Bf-blender-cvs mailing list