[Bf-blender-cvs] [7b0d25c] experimental-build: Debug print for T46412, take tow: ConvertDepthToRadiusOperation seems to work OK, now check VariableSizeBokehBlurOperation...
Bastien Montagne
noreply at git.blender.org
Sun Oct 11 17:51:56 CEST 2015
Commit: 7b0d25c26bb416ecfeaf13bf10681027903b16f7
Author: Bastien Montagne
Date: Sun Oct 11 17:50:23 2015 +0200
Branches: experimental-build
https://developer.blender.org/rB7b0d25c26bb416ecfeaf13bf10681027903b16f7
Debug print for T46412, take tow: ConvertDepthToRadiusOperation seems to work OK, now check VariableSizeBokehBlurOperation...
===================================================================
M source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cpp
===================================================================
diff --git a/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cpp b/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cpp
index 1ec5257..6b0f708 100644
--- a/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cpp
+++ b/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cpp
@@ -135,6 +135,8 @@ void VariableSizeBokehBlurOperation::executePixel(float output[4], int x, int y,
copy_v4_v4(color_accum, readColor);
copy_v4_fl(multiplier_accum, 1.0f);
float size_center = tempSize[0] * scalar;
+
+ printf("(%d, %d) %f, %f, %f\n", x, y, size_center, tempSize[0], scalar);
const int addXStepValue = QualityStepHelper::getStep();
const int addYStepValue = addXStepValue;
@@ -171,6 +173,9 @@ void VariableSizeBokehBlurOperation::executePixel(float output[4], int x, int y,
output[2] = color_accum[2] / multiplier_accum[2];
output[3] = color_accum[3] / multiplier_accum[3];
+ print_v4_id(readColor);
+ print_v4_id(output);
+
/* blend in out values over the threshold, otherwise we get sharp, ugly transitions */
if ((size_center > this->m_threshold) &&
(size_center < this->m_threshold * 2.0f))
More information about the Bf-blender-cvs
mailing list