Text archives Help
- From: bigler@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r1361 - trunk/SwigInterface
- Date: Thu, 26 Apr 2007 16:54:13 -0600 (MDT)
Author: bigler
Date: Thu Apr 26 16:54:12 2007
New Revision: 1361
Modified:
trunk/SwigInterface/runmanta.py
Log:
Turn off shadows if doAddDebugRays is True.
Changed old addXInterface to addSyncXInterface and implemented
addXInterface that uses the bin/manta style image display.
Modified: trunk/SwigInterface/runmanta.py
==============================================================================
--- trunk/SwigInterface/runmanta.py (original)
+++ trunk/SwigInterface/runmanta.py Thu Apr 26 16:54:12 2007
@@ -251,6 +251,7 @@
objs.add(manta_new(Sphere(transp_matl,
Vector( -3, 0, 4.5), 0.5)))
+ # Thin dielectric
# objs.add(manta_new(Parallelogram(manta_new(ThinDielectric(1.2,
Color(RGBColor(0.7, 0.2, 0.4)), 0.1)),
# Vector(-1, -2, 4.0),
# Vector(2, 0, 0),
@@ -307,13 +308,15 @@
factory.selectPixelSampler("singlesample")
#factory.selectPixelSampler("jittersample(-numberOfSamples 4)")
factory.selectRenderer("raytracer")
- #factory.selectShadowAlgorithm("noshadows")
- factory.selectShadowAlgorithm("hard(-attenuate)")
+ if (doAddDebugRays):
+ factory.selectShadowAlgorithm("noshadows")
+ else:
+ factory.selectShadowAlgorithm("hard(-attenuate)")
#factory.selectShadowAlgorithm("hard")
#
return engine
-def addXInterface(engine, camera, xres, yres):
+def addSyncXInterface(engine, camera, xres, yres):
xinterface = factory.createUserInterface("X")
xinterface.startup()
@@ -325,6 +328,12 @@
sync_automator.startup()
engine.createChannel(sync_display, camera, False, xres, yres)
# engine.createChannel("opengl", camera, False, xres, yres)
+
+def addXInterface(engine, camera, xres, yres):
+ xinterface = factory.createUserInterface("X")
+ xinterface.startup()
+ display = factory.createImageDisplay("opengl");
+ engine.createChannel(display, camera, False, xres, yres)
def addNullInterface(engine, camera, xres, yres):
ui = factory.createUserInterface("null")
- [MANTA] r1361 - trunk/SwigInterface, bigler, 04/26/2007
Archive powered by MHonArc 2.6.16.