[Bf-blender-cvs] [059dae0f1a9] cycles_path_guiding: Guiding: commented out print outs

Sebastian Herholz noreply at git.blender.org
Sat Sep 17 22:23:05 CEST 2022


Commit: 059dae0f1a916d0612668b7c0485aa6bc7f68149
Author: Sebastian Herholz
Date:   Sat Sep 17 20:40:38 2022 +0200
Branches: cycles_path_guiding
https://developer.blender.org/rB059dae0f1a916d0612668b7c0485aa6bc7f68149

Guiding: commented out print outs

===================================================================

M	intern/cycles/kernel/integrator/surface_shader.h

===================================================================

diff --git a/intern/cycles/kernel/integrator/surface_shader.h b/intern/cycles/kernel/integrator/surface_shader.h
index d9c257f4d97..8024385b77a 100644
--- a/intern/cycles/kernel/integrator/surface_shader.h
+++ b/intern/cycles/kernel/integrator/surface_shader.h
@@ -478,32 +478,35 @@ ccl_device int surface_shader_bsdf_guided_sample_closure(KernelGlobals kg,
     ///////
     bool is_transmission3 = surface_shader_is_transmission_sc(sc, *omega_in);
     int label2 = bsdf_label(kg, sc, is_transmission3);
-
-    if (*bsdf_pdf > 0.f && label != label2) {
-      std::cout << "LABEL ERROR: " << std::endl;
-      std::cout << "LABEL:  reflect = " << (label & LABEL_REFLECT)
-                << "\t transmit = " << (label & LABEL_TRANSMIT)
-                << "\t diffuse = " << (label & LABEL_DIFFUSE)
-                << "\t glossy = " << (label & LABEL_GLOSSY)
-                << "\t singular = " << (label & LABEL_SINGULAR) << std::endl;
-      std::cout << "LABEL2: reflect = " << (label2 & LABEL_REFLECT)
-                << "\t transmit = " << (label2 & LABEL_TRANSMIT)
-                << "\t diffuse = " << (label2 & LABEL_DIFFUSE)
-                << "\t glossy = " << (label2 & LABEL_GLOSSY)
-                << "\t singular = " << (label2 & LABEL_SINGULAR) << std::endl;
-      // int label2 = bsdf_label(kg, sc, is_transmission3);
-    }
-
+    /*
+        if (*bsdf_pdf > 0.f && label != label2) {
+          std::cout << "LABEL ERROR: " << std::endl;
+          std::cout << "LABEL:  reflect = " << (label & LABEL_REFLECT)
+                    << "\t transmit = " << (label & LABEL_TRANSMIT)
+                    << "\t diffuse = " << (label & LABEL_DIFFUSE)
+                    << "\t glossy = " << (label & LABEL_GLOSSY)
+                    << "\t singular = " << (label & LABEL_SINGULAR) << std::endl;
+          std::cout << "LABEL2: reflect = " << (label2 & LABEL_REFLECT)
+                    << "\t transmit = " << (label2 & LABEL_TRANSMIT)
+                    << "\t diffuse = " << (label2 & LABEL_DIFFUSE)
+                    << "\t glossy = " << (label2 & LABEL_GLOSSY)
+                    << "\t singular = " << (label2 & LABEL_SINGULAR) << std::endl;
+          // int label2 = bsdf_label(kg, sc, is_transmission3);
+        }
+    */
     float2 sampled_rougness2;
     float eta2;
     bsdf_roughness_eta(kg, sc, &sampled_rougness2, &eta2);
     if (*bsdf_pdf > 0.f && (*eta != eta2 || sampled_rougness->x != sampled_rougness2.x ||
                             sampled_rougness->y != sampled_rougness2.y)) {
-      std::cout << "ROUGHNESS ETA ERROR: " << std::endl;
-      std::cout << "ETA:  eta = " << *eta << "\t eta2 = " << eta2
-                << "\t rough.x = " << sampled_rougness->x << "\t rough.y = " << sampled_rougness->y
-                << "\t rough2.x = " << sampled_rougness2.x
-                << "\t rough2.y = " << sampled_rougness2.y << std::endl;
+      /*
+            std::cout << "ROUGHNESS ETA ERROR: " << std::endl;
+            std::cout << "ETA:  eta = " << *eta << "\t eta2 = " << eta2
+                      << "\t rough.x = " << sampled_rougness->x << "\t rough.y = " <<
+         sampled_rougness->y
+                      << "\t rough2.x = " << sampled_rougness2.x
+                      << "\t rough2.y = " << sampled_rougness2.y << std::endl;
+      */
       bsdf_roughness_eta(kg, sc, &sampled_rougness2, &eta2);
     }



More information about the Bf-blender-cvs mailing list