From BlenderWiki

Jump to: navigation, search
Note: This is an archived version of the Blender Developer Wiki. The current and active wiki is available on wiki.blender.org.

Deformation Motion Blur Design

THIS DOCUMENT IS NOT COMPLETE AND WILL NOT BE UNTIL THE FEATURE IS COMPLETELY READY!

Changes to the Object Class

I plan to add two new fields to the Object class: a bool and a uint.

The bool will store whether the Object will use Deformation Motion Blur or not.

The uint will store the number of export steps for the Object.

Changes to the Mesh Class

Brecht also asked me to add the number of export steps to the Mesh class.

Changes to Attributes

I need to add one more AttributeElement. It will be a vertex block.

I also need to add an AttributeStandard that will take the place of both the ATTR_STD_MOTION_PRE and ATTR_STD_MOTION_POST. It will be for motion, and since an arbitrary number of export steps will be allowed, we won't need to distinguish between ones before and ones after.

Then, I need to extend the Attribute class to be able to hold an arbitrary number of vertices and an arbitrary number of export steps.