diff options
author | Ton Roosendaal <ton@blender.org> | 2008-01-21 21:08:57 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-01-21 21:08:57 +0300 |
commit | 1357f1b09fcb6a8d0cdcb160dd18b22cad6fca08 (patch) | |
tree | 2032cdeb17adbc89c6cb7e80944d61415a67ee3b /source/blender/src/drawnode.c | |
parent | 14241f8349e611c243ee4bdb9f2c56cbc32ba853 (diff) |
Vector Blur now has option to be curved!
Especially for fast moving objects (as we have here in Peach) the
art department demanded nice curved vector blur. This formula uses
a quadratic bezier function, which is not giving perfect circles, but
certainly useful results.
Also on todo: get this blur code to do nicer accumulation...
Diffstat (limited to 'source/blender/src/drawnode.c')
-rw-r--r-- | source/blender/src/drawnode.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/src/drawnode.c b/source/blender/src/drawnode.c index 3e93b46c1cb..3acd9eaa798 100644 --- a/source/blender/src/drawnode.c +++ b/source/blender/src/drawnode.c @@ -1437,8 +1437,11 @@ static int node_composit_buts_vecblur(uiBlock *block, bNodeTree *ntree, bNode *n uiDefButS(block, NUM, B_NODE_EXEC+node->nr, "MaxSpeed:", butr->xmin, dy+19, dx, 19, &nbd->maxspeed, 0, 1024, 0, 0, "If not zero, maximum speed in pixels"); + uiDefButS(block, TOG, B_NODE_EXEC+node->nr, "C", + butr->xmin, dy, 20, 19, + &nbd->curved, 0.0f, 2.0f, 10, 2, "Use Curved interpolation"); uiDefButF(block, NUM, B_NODE_EXEC+node->nr, "BlurFac:", - butr->xmin, dy, dx, 19, + butr->xmin+20, dy, dx-20, 19, &nbd->fac, 0.0f, 2.0f, 10, 2, "Scaling factor for motion vectors, actually 'shutter speed' in frames"); } return 76; |