Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r525 - in branches/fire: Model/Materials scenes


Chronological Thread 
  • From: vpegorar@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r525 - in branches/fire: Model/Materials scenes
  • Date: Thu, 1 Sep 2005 12:16:13 -0600 (MDT)

Author: vpegorar
Date: Thu Sep  1 12:16:12 2005
New Revision: 525

Modified:
   branches/fire/Model/Materials/InhomogeneousParticipatingMedium.cc
   branches/fire/scenes/primtest.cc
Log:
Bound the contribution of the transmitted rays if tone mapping is applied 
inside the IPM to prevent saturation effect.

Modified: branches/fire/Model/Materials/InhomogeneousParticipatingMedium.cc
==============================================================================
--- branches/fire/Model/Materials/InhomogeneousParticipatingMedium.cc   
(original)
+++ branches/fire/Model/Materials/InhomogeneousParticipatingMedium.cc   Thu 
Sep  1 12:16:12 2005
@@ -391,7 +391,8 @@
                                else
                                        
lRays.get(0).hitInfo.hitMaterial()->shade(context, lRays);
 
-                               accumColor = accumColor + 
*(lRays.get(0).color) * accumTransmittance;
+                               if (m_AdaptationLevelLMS > 0.0f)        
accumColor += *(lRays.get(0).color) * accumTransmittance * 
(Color(RGBColor(1.0f, 1.0f, 1.0f)) - accumColor);
+                               else                                          
                  accumColor += *(lRays.get(0).color) * accumTransmittance;
                        }
                }
 

Modified: branches/fire/scenes/primtest.cc
==============================================================================
--- branches/fire/scenes/primtest.cc    (original)
+++ branches/fire/scenes/primtest.cc    Thu Sep  1 12:16:12 2005
@@ -268,7 +268,7 @@
        Primitive * primC = new Cube(matIPM, Point(-0.2, -0.2, 0.2), 0.4, 
0.4, 0.4);
        Primitive * primS = new Sphere(matL, Point(0.0, 0.0, 0.4), 0.1);
        group->add(primC);
-       group->add(primS);
+//     group->add(primS);
   } else {
     throw IllegalArgument("Unknown primitive type for primtest: "+primtype, 
0, args);
   }




  • [MANTA] r525 - in branches/fire: Model/Materials scenes, vpegorar, 09/01/2005

Archive powered by MHonArc 2.6.16.

Top of page