Text archives Help
- From: abe@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r1372 - trunk/SwigInterface
- Date: Tue, 8 May 2007 12:51:20 -0600 (MDT)
Author: abe
Date: Tue May 8 12:51:19 2007
New Revision: 1372
Modified:
trunk/SwigInterface/objviewer.py
Log:
Commented out the code to change the image traverser. People using
this code might explore different configurations by making a copy of
the script.. Note that transactions must be used after the wxManta
interface is initialized (even before the MainLoop call) because some
manta threads are already started..
M objviewer.py
Modified: trunk/SwigInterface/objviewer.py
==============================================================================
--- trunk/SwigInterface/objviewer.py (original)
+++ trunk/SwigInterface/objviewer.py Tue May 8 12:51:19 2007
@@ -30,10 +30,13 @@
import wxManta
import getopt, sys
+
# Import the manta module, the mantainterface module which was %import'ed
# into swig/example.i is automatically included by the manta module.
from manta import *
+from pycallback import *
+
filename = ""
# Re-create the default scene using the example texture.
@@ -114,9 +117,13 @@
###########################################################################
# Perform any additional setup
+ # cbArgs = ( manta_new( TiledImageTraverser( 64, 64 ) ), )
+ # app.frame.engine.addTransaction("set image traverser",
+ #
manta_new(createMantaTransaction(app.frame.engine.setImageTraverser, cbArgs)))
- app.frame.engine.setImageTraverser( manta_new( TiledImageTraverser( 32,
32 ) ) )
- app.frame.engine.setShadowAlgorithm( manta_new( HardShadows( True ) ) )
+
+
+ # app.frame.engine.setShadowAlgorithm( manta_new( HardShadows( True ) ) )
# Start rendering.
app.MainLoop()
- [MANTA] r1372 - trunk/SwigInterface, abe, 05/08/2007
Archive powered by MHonArc 2.6.16.