Text archives Help
- From: cgribble@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r1526 - in trunk: DynLT scenes
- Date: Sat, 21 Jul 2007 07:45:13 -0600 (MDT)
Author: cgribble
Date: Sat Jul 21 07:45:12 2007
New Revision: 1526
Removed:
trunk/DynLT/DynLTCGT.cc~
trunk/DynLT/DynLTCGT.h~
Modified:
trunk/scenes/pcgt.cc
Log:
Some cleanup: remove tilde files, don't adjust vmin/vmax by radius until I
understand why
Modified: trunk/scenes/pcgt.cc
==============================================================================
--- trunk/scenes/pcgt.cc (original)
+++ trunk/scenes/pcgt.cc Sat Jul 21 07:45:12 2007
@@ -92,11 +92,15 @@
vmin = std::min(vmin, data[cidx]);
vmax = std::max(vmax, data[cidx]);
}
- if (cidx < 3)
- {
+
+ // XXX(cpg) - Why adjust by the radius? First, radius may vary per
particle.
+ // Second, it's unclear why this is necessary at all.
+ /*
+ if (cidx < 3) {
vmin -= radius;
vmax += radius;
- }
+ }
+ */
Material* material = new Lambertian(new ColorMap(cmap, vmin, vmax));
@@ -122,7 +126,7 @@
scene->setBackground(new ConstantBackground(Color(RGB(0, 0, 0))));
// Add lights
- LightSet* lights=new LightSet();
+ LightSet* lights = new LightSet();
lights->add(new PointLight(Vector(lx, ly, lz), Color(RGB(1, 1, 1))));
lights->setAmbientLight(new ConstantAmbient(Color(RGB(0.4, 0.4, 0.4))));
scene->setLights(lights);
- [MANTA] r1526 - in trunk: DynLT scenes, cgribble, 07/21/2007
Archive powered by MHonArc 2.6.16.