gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz ./TODO gfx/libcoords/Coords.hxx gfx/util/pa...


From: Tuomas J. Lukka
Subject: [Gzz-commits] gzz ./TODO gfx/libcoords/Coords.hxx gfx/util/pa...
Date: Mon, 03 Mar 2003 03:27:08 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Tuomas J. Lukka <address@hidden>        03/03/03 03:27:06

Modified files:
        .              : TODO 
        gfx/libcoords  : Coords.hxx 
        gfx/util       : papersampler.py 

Log message:
        reorg

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/TODO.diff?tr1=1.599&tr2=1.600&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/libcoords/Coords.hxx.diff?tr1=1.29&tr2=1.30&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/util/papersampler.py.diff?tr1=1.1&tr2=1.2&r1=text&r2=text

Patches:
Index: gzz/TODO
diff -u gzz/TODO:1.599 gzz/TODO:1.600
--- gzz/TODO:1.599      Fri Feb 28 15:40:30 2003
+++ gzz/TODO    Mon Mar  3 03:27:05 2003
@@ -18,7 +18,6 @@
 
     tjl:
         - Create a script that 
-            - generates single color, light, and dark textures
             - saves 15 of each (different for each group) in PNG files
             - generates white, light, and dark versions of a unique texture 
               for each page in http://himalia.it.jyu.fi/~jvkujala/texts.pdf
Index: gzz/gfx/libcoords/Coords.hxx
diff -u gzz/gfx/libcoords/Coords.hxx:1.29 gzz/gfx/libcoords/Coords.hxx:1.30
--- gzz/gfx/libcoords/Coords.hxx:1.29   Fri Feb 21 15:02:32 2003
+++ gzz/gfx/libcoords/Coords.hxx        Mon Mar  3 03:27:05 2003
@@ -44,7 +44,7 @@
        CSFLAGS = 0xf0000000
     };
 
-    /** A single coordinate system, possibly defined
+    /** A single "final" transform, possibly defined
      * hierarchically through others.
      * <p>
      * If you get a CoordSys from somewhere, the only methods
Index: gzz/gfx/util/papersampler.py
diff -u gzz/gfx/util/papersampler.py:1.1 gzz/gfx/util/papersampler.py:1.2
--- gzz/gfx/util/papersampler.py:1.1    Sun Mar  2 12:11:14 2003
+++ gzz/gfx/util/papersampler.py        Mon Mar  3 03:27:06 2003
@@ -15,6 +15,8 @@
 
 aspect = float(xs)/ys
 
+textblock = "011D75251F04C8BF89A44C88D875886B2B5172522A"
+
 def getpaper(seed, opts):
     pap = ThePaperMill().getPaper(seed, **opts)
     return GLRen.createPaperQuad(pap, -aspect/2, -.5, aspect/2, .5, 0)
@@ -30,33 +32,35 @@
     pq = getpaper(seed, opts)
     vs.map.put(pq, cs1, cs2)
     return vs
-    
+
+def createPurePapers():
+    seed = 100
+    for opts in [
+       { "numcolors" : 8, "minlum" : 80 },
+       { "numcolors" : 8, "minlum" : 94 },
+       { "numcolors" : 1, "minlum" : 80 },
+       ]:
+       for i in range(0,30):
+           vs = w.createVobScene()
+           paperscene(vs, seed, opts)
+           w.renderStill(vs, 0)
+           saveanim.saveframe("/tmp/tmp%s.png" % seed, w)
+           java.lang.System.gc()
+           GL.freeQueue()
+
+           seed += 1
+
+  
 class Main(Runnable):
 
     def run(self):
-        global ThePaperMill
+        global ThePaperMill, w
         from gfx.libpaper.papermill import ThePaperMill
         
         w = gfxapi.createWindow()
         w.setLocation(0,0,xs,ys)
 
-        seed = 100
-        for opts in [
-            { "numcolors" : 8, "minlum" : 80 },
-            { "numcolors" : 8, "minlum" : 94 },
-            { "numcolors" : 1, "minlum" : 80 },
-            ]:
-            for i in range(0,30):
-                vs = w.createVobScene()
-                paperscene(vs, seed, opts)
-                w.renderStill(vs, 0)
-                saveanim.saveframe("/tmp/tmp%s.png" % seed, w)
-                java.lang.System.gc()
-                GL.freeQueue()
-
-                seed += 1
-
-
+       createPurePapers()
 
 
 gfxapi = GraphicsAPI.getInstance()




reply via email to

[Prev in Thread] Current Thread [Next in Thread]