Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] r1860 - trunk/Engine/Renderers


Chronological Thread 
  • From: arobison@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [Manta] r1860 - trunk/Engine/Renderers
  • Date: Tue, 20 Nov 2007 16:14:19 -0700 (MST)

Author: arobison
Date: Tue Nov 20 16:14:19 2007
New Revision: 1860

Modified:
   trunk/Engine/Renderers/KajiyaPathtracer.cc
Log:
Removing double PDF calculation, AreaLight returns the corrected color.


Modified: trunk/Engine/Renderers/KajiyaPathtracer.cc
==============================================================================
--- trunk/Engine/Renderers/KajiyaPathtracer.cc  (original)
+++ trunk/Engine/Renderers/KajiyaPathtracer.cc  Tue Nov 20 16:14:19 2007
@@ -273,12 +273,8 @@
           // Not in shadow, so compute the direct lighting contributions.
           Vector normal = rays.getFFNormal(i);
           Vector light_dir = shadowRays.getDirection(i);
-          double dist = light_dir.normalize();
-          // This should be retrieved from the light somehow - probably put 
into the light color
-          double A = 20;
-          //NOT_FINISHED("Light source area and normal");
-          Vector light_normal = Vector(0, -1, 0);
-          double weight=Dot(normal, light_dir) * Abs(Dot(light_normal, 
light_dir)) * A / (M_PI*dist*dist);
+          light_dir.normalize();
+          double weight=Dot(normal, light_dir);
           Color light_color = shadowRays.getColor(i);
           result.set(i, result.get(i) + total_attenuation.get(i) * 
light_color * weight);
         }




  • [Manta] r1860 - trunk/Engine/Renderers, arobison, 11/20/2007

Archive powered by MHonArc 2.6.16.

Top of page