NLA Strips Evaluation

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
aligorith
Posts: 0
Joined: Sun Dec 05, 2004 3:40 am
Location: Chch, NZ

NLA Strips Evaluation

Post by aligorith » Sat May 13, 2006 8:26 am

Hi,

I was wondering where the code for how nla strips are evaluated resides. In particular, how blendin and blendout work.

Aligorith

harkyman
Posts: 98
Joined: Fri Oct 18, 2002 2:47 pm
Location: Pennsylvania, USA
Contact:

Post by harkyman » Sun May 14, 2006 6:12 am

This is from memory, so double-check...

nla evaluation code resides in /source/blender/blenkernel/intern/action.c

specifically, the function is called do_nla(), so if I pointed to the wrong function, search the sources for "void do_nla" and that'll get you there.

As to blendin and blendout, they are used as a blending factor when do_nla hands the pose-blending off to another function. If blendin is 0 on a certain frame, you get 0% of the bottom strip, and 100% of the upper. If it's .5, you get 50% and 50%, etc.

If I knew how to create new Ipo types and attach them to structures, which, really it's probably not all that hard, this sort of blending could be done with an Ipo curve for significantly more control. Hmmmm. That sounds like a good idea.

Post Reply