[Bf-blender-cvs] [fc35c8a] multiview: support for stereo 3d encoded (top-bottom, anaglyph, ...) depth channel
Dalai Felinto
noreply at git.blender.org
Wed Sep 17 14:12:34 CEST 2014
Commit: fc35c8ae2632f0d9590b168a7b35d9d733c30d5d
Author: Dalai Felinto
Date: Tue Sep 16 11:07:07 2014 +0200
Branches: multiview
https://developer.blender.org/rBfc35c8ae2632f0d9590b168a7b35d9d733c30d5d
support for stereo 3d encoded (top-bottom, anaglyph, ...) depth channel
===================================================================
M source/blender/imbuf/intern/stereoimbuf.c
===================================================================
diff --git a/source/blender/imbuf/intern/stereoimbuf.c b/source/blender/imbuf/intern/stereoimbuf.c
index 9e065e0..a8406af 100644
--- a/source/blender/imbuf/intern/stereoimbuf.c
+++ b/source/blender/imbuf/intern/stereoimbuf.c
@@ -1244,6 +1244,23 @@ void IMB_ImBufFromStereo(Stereo3dFormat *s3d, ImBuf **left, ImBuf **right)
imb_stereo_read_doit(&s3d_data, s3d);
+ if ((stereo->flags & IB_zbuf) || (stereo->flags & IB_zbuffloat)) {
+ if (is_float) {
+ addzbuffloatImBuf(*left);
+ addzbuffloatImBuf(*right);
+ }
+ else {
+ addzbufImBuf(*left);
+ addzbufImBuf(*right);
+ }
+
+ imb_stereo_data_initialize(&s3d_data, is_float, (*left)->x , (*left)->y, 1,
+ (int *)((*left)->zbuf), (int *)((*right)->zbuf), (int *)stereo->zbuf,
+ (*left)->zbuf_float, (*right)->zbuf_float, stereo->zbuf_float);
+
+ imb_stereo_read_doit(&s3d_data, s3d);
+ }
+
IMB_freeImBuf(stereo);
}
More information about the Bf-blender-cvs
mailing list