gzz-commits
[Top][All Lists]
Advanced

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

[Gzz-commits] gzz Documentation/Manuscripts/Paper/paper.tex g...


From: Tuomas J. Lukka
Subject: [Gzz-commits] gzz Documentation/Manuscripts/Paper/paper.tex g...
Date: Sun, 17 Nov 2002 06:04:52 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Tuomas J. Lukka <address@hidden>        02/11/17 06:04:52

Modified files:
        Documentation/Manuscripts/Paper: paper.tex 
        gfx/demo       : fillets.py irregu4.py 
        gfx/libutil    : saveanim.py 
Added files:
        doc/pegboard/bug_test--tjl: peg.rst 

Log message:
        New PEG for failing tests

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/Documentation/Manuscripts/Paper/paper.tex.diff?tr1=1.32&tr2=1.33&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/doc/pegboard/bug_test--tjl/peg.rst?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/demo/fillets.py.diff?tr1=1.10&tr2=1.11&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/demo/irregu4.py.diff?tr1=1.16&tr2=1.17&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/libutil/saveanim.py.diff?tr1=1.3&tr2=1.4&r1=text&r2=text

Patches:
Index: gzz/Documentation/Manuscripts/Paper/paper.tex
diff -u gzz/Documentation/Manuscripts/Paper/paper.tex:1.32 
gzz/Documentation/Manuscripts/Paper/paper.tex:1.33
--- gzz/Documentation/Manuscripts/Paper/paper.tex:1.32  Sat Nov 16 12:34:07 2002
+++ gzz/Documentation/Manuscripts/Paper/paper.tex       Sun Nov 17 06:04:52 2002
@@ -28,27 +28,34 @@
 
 \begin{abstract}
 We introduce unique textures: procedurally generated textures based on  
-- for identity (displaying etc)
+node identity,
+for assisting user orientation
+in navigating hyperstructures using Focus+Context views.
+%
+We can generate a texture for every document the user ever visits,
+and the user will be able to learn the textures of the 
+most often visited
+documents, as per Zipf's law.
+%
+In Focus+Context views, the textures can act as visual cues in the context
+(information foraging).
+
+We have designed a hardware-accelerated implementation of unique textures
+using a rough, qualitative model of visual perception.
+The implementation works by combining a small set of basis textures
+on the GPU.
+
+% - saving bits
+% - colors decoupled
+% - perceptually uniformly chosen
+% - repeating non-repeating
+% - render-to-texture
+
+% Unique textures can be implemented by combining a small set of basis
+% textures on the GPU. We discuss our implementation on the NV10 and NV20
+% architectures.
 
-- procedural textures
-- Xanalogical hypertext
-
-- focus+context
-- info foraging
-- can generate $2^32$ different, users learn most common (Zipf)
-
-- combining small set of basis textures
-- hw accel 
-- impl NV10 NV20
-
-- saving bits
-- perceptron
-- colors decoupled
-- perceptually uniformly chosen
-- repeating non-repeating
-- render-to-texture
-
-- example: f+c PDF
+% - example: f+c PDF
 %- EFFICIENT\\
 %- Perceptron model justification\\
 %- identity in non-hierarchical situations
@@ -56,8 +63,6 @@
 
 \section{Introduction}
 
-URN-5
-
 % Surveys \cite{heckbert86survey}
 
 Used for
@@ -100,6 +105,9 @@
 
 this article: texturing for 
 
+\section{Identity}
+
+URN-5
 
 \section{Unique Textures}
 
@@ -237,9 +245,7 @@
 
 {\bf jvk}
 
-\section{Preliminary experiment}
-
-{\bf Marketta}
+\section{Example application}
 
 \section{Software availability}
 
Index: gzz/gfx/demo/fillets.py
diff -u gzz/gfx/demo/fillets.py:1.10 gzz/gfx/demo/fillets.py:1.11
--- gzz/gfx/demo/fillets.py:1.10        Fri Nov 15 03:11:44 2002
+++ gzz/gfx/demo/fillets.py     Sun Nov 17 06:04:52 2002
@@ -574,10 +574,11 @@
        sc.scene(vs1)
        sc.key("p")
        sc.scene(vs2)
-       saveanim.savesequence(w, "tmpfilm/frame0.", vs1, vs2, 40)
-       saveanim.savesequence(w, "tmpfilm/frame1.", vs2, vs1, 20)
+       s = { "x" : 20, "y" : 20, "w" : 600, "h" : 600 }
+       saveanim.savesequence(w, "tmpfilm/frame0.", vs1, vs2, 30, **s)
+       saveanim.savesequence(w, "tmpfilm/frame1.", vs2, vs1, 20, **s)
 
-       saveanim.encodefilm("tmpfilm/frame*", "filletfilm.avi")
+       saveanim.encodefilm("tmpfilm/frame\\*", "filletfilm.avi")
 
     return 0
 
Index: gzz/gfx/demo/irregu4.py
diff -u gzz/gfx/demo/irregu4.py:1.16 gzz/gfx/demo/irregu4.py:1.17
--- gzz/gfx/demo/irregu4.py:1.16        Fri Nov 15 04:14:53 2002
+++ gzz/gfx/demo/irregu4.py     Sun Nov 17 06:04:52 2002
@@ -452,7 +452,11 @@
            rotatelist(textures)
             inittex()
             self.initcode()
-
+       elif k == "0":
+           self.film()
+    def film(self):
+       # 
+       pass
 
 currentScene = IrreguScene()
 
Index: gzz/gfx/libutil/saveanim.py
diff -u gzz/gfx/libutil/saveanim.py:1.3 gzz/gfx/libutil/saveanim.py:1.4
--- gzz/gfx/libutil/saveanim.py:1.3     Fri Nov 15 03:11:44 2002
+++ gzz/gfx/libutil/saveanim.py Sun Nov 17 06:04:52 2002
@@ -4,20 +4,22 @@
 from gzz.gfx.gl import GL
 import os
 
-def saveframe(filename, win):
-    x,y = 0,0
+def saveframe(filename, win, x=0, y=0, w=None, h=None):
     s = win.getSize()
-    pix = win.readPixels(0, 0, s.width, s.height)
-    saveimage.save(filename, pix, s.width, s.height)
+    if w==None: w = s.width
+    if h==None: h = s.height
+    pix = win.readPixels(x, y, w, h)
+    saveimage.save(filename, pix, w, h)
 
-def savesequence(win, filebase, vs1, vs2, n):
+def savesequence(win, filebase, vs1, vs2, n, **args):
     for frame in range(0, n+1):
        fract = frame / (n+0.0)
        win.renderAnim(vs1, vs2, fract, 0, 1)
-       saveframe(filebase + "%03d"%frame + ".jpg", win)
+       saveframe(filebase + "%03d"%frame + ".jpg", win, **args)
 
 def encodefilm(globpat, outfilm):
     mencoder = "/BIG/MPlayer-0.90pre8/mencoder"
-    os.system("%(mencoder)s %(globpat)s -lavcopts vcodec=mpeg4 -mf on:fps=25 
-ovc lavc -o %(outfilm)s"
-       % locals())
+    cmd = "%(mencoder)s %(globpat)s -lavcopts vcodec=mpeg4 -mf on:fps=25 -ovc 
lavc -o %(outfilm)s" % locals()
+    print cmd
+    os.system(cmd)
 




reply via email to

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