Text archives Help
- From: sparker@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r774 - trunk/SwigInterface
- Date: Mon, 12 Dec 2005 22:43:18 -0700 (MST)
Author: sparker
Date: Mon Dec 12 22:43:18 2005
New Revision: 774
Modified:
trunk/SwigInterface/runmanta.py
Log:
Beers law absorption shouldn't be black
Modified: trunk/SwigInterface/runmanta.py
==============================================================================
--- trunk/SwigInterface/runmanta.py (original)
+++ trunk/SwigInterface/runmanta.py Mon Dec 12 22:43:18 2005
@@ -47,9 +47,11 @@
ball_matl = manta_new(MetalMaterial(Color(RGBColor(0.8, 0.8, 0.8)), 100))
world.add(manta_new(Sphere(ball_matl, Point(-6, 3.5, 3.5), 1.0)))
+ lenscale = 2.5
+ glass = Color(RGBColor(pow(0.80, lenscale), pow(0.93, lenscale),
pow(0.87, lenscale)))
for i in range(4):
eta = 1 + i*0.5 + .05
- transp_matl = manta_new(Dielectric(eta, 1, Color.black()))
+ transp_matl = manta_new(Dielectric(eta, 1, glass))
# transp_matl = manta_new(Lambertian(Color(RGBColor(0.3,0.1,0.1))))
corner = Point(i*1.3 - 4, -3, 2.5+1.e-4);
size = Vector(0.20, 2.5, 1.4);
- [MANTA] r774 - trunk/SwigInterface, sparker, 12/12/2005
Archive powered by MHonArc 2.6.16.