diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-03-24 02:12:24 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-04-17 17:11:34 +0400 |
commit | 02e5bdf864bdf001af5ef751f296e90c02edad5b (patch) | |
tree | 98aef831e7ef5e854c5542219e74d0be4bdf13d2 /source/blender/editors/space_node/drawnode.c | |
parent | e0e05ae85eee83dfc5c07f3dba0664a3ade62d7a (diff) |
Initial implementation of overscan renderingoverscan
For now only affects blender internal renderer and viewport.
Currently it's possible to define overscan (in %%) manually
or make it so distortion matches the motrack displacement
model.
Still need to do loads of things in compositor, but it's
not such a bad starting point.
We can even start a branch for this.
Reviewers: dfelinto
Differential Revision: https://developer.blender.org/D462
Diffstat (limited to 'source/blender/editors/space_node/drawnode.c')
-rw-r--r-- | source/blender/editors/space_node/drawnode.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c index eb5c23a60f7..d97c0aa82d6 100644 --- a/source/blender/editors/space_node/drawnode.c +++ b/source/blender/editors/space_node/drawnode.c @@ -1897,6 +1897,18 @@ static void node_composit_buts_moviedistortion(uiLayout *layout, bContext *C, Po return; uiItemR(layout, ptr, "distortion_type", 0, "", ICON_NONE); + uiItemR(layout, ptr, "use_detect_overscan", 0, NULL, 0); + + if ((node->custom2 & CMP_NODE_MOVIEDISTORTION_DETECTOVERSCAN) == 0) { + uiItemR(layout, ptr, "overscan", 0, NULL, 0); + } + else { + char buf[64]; + BLI_snprintf(buf, sizeof(buf), "Overscan: %.1f%%", node->custom3); + uiItemL(layout, buf, 0); + } + + uiItemR(layout, ptr, "use_crop_overscan", 0, NULL, 0); } static void node_composit_buts_colorcorrection(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) |