gzz-commits
[Top][All Lists]
Advanced

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

[Gzz-commits] gzz gfx/demo/buoyoing.py ./TODO


From: Janne V. Kujala
Subject: [Gzz-commits] gzz gfx/demo/buoyoing.py ./TODO
Date: Fri, 14 Feb 2003 15:25:04 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Janne V. Kujala <address@hidden>        03/02/14 15:25:04

Modified files:
        gfx/demo       : buoyoing.py 
        .              : TODO 

Log message:
        how to cause a link to be followed from the code?

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/demo/buoyoing.py.diff?tr1=1.25&tr2=1.26&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/TODO.diff?tr1=1.586&tr2=1.587&r1=text&r2=text

Patches:
Index: gzz/TODO
diff -u gzz/TODO:1.586 gzz/TODO:1.587
--- gzz/TODO:1.586      Fri Feb 14 14:23:38 2003
+++ gzz/TODO    Fri Feb 14 15:25:04 2003
@@ -16,6 +16,8 @@
 HT03 deadline:
     tjl:
        - the great buoy redesign
+           - how to cause a link to be followed from the code?
+             (see the FIXME's in the screenshot code at the end of buoyoing.py)
            - buoy comes too early through the new main frame when animateing.
              Eli poiju napsahtaa liian aikaisin esiin, tätä on tietysti vaikea 
korjata, 
               koska kyse on lineaarisesta interpolaatiosta?
Index: gzz/gfx/demo/buoyoing.py
diff -u gzz/gfx/demo/buoyoing.py:1.25 gzz/gfx/demo/buoyoing.py:1.26
--- gzz/gfx/demo/buoyoing.py:1.25       Fri Feb 14 14:23:38 2003
+++ gzz/gfx/demo/buoyoing.py    Fri Feb 14 15:25:04 2003
@@ -18,6 +18,8 @@
 from gzz.modules.pp2 import PPCanvasNode
 from gzz.view.buoy import PPLinker
 
+from gfx.libutil import saveanim
+
 gzz.view.PageSpanCellView.dicefactor = .01
 
 buoymanager.replaceNewScene = replaceNewScene
@@ -168,3 +170,34 @@
        buoymanager.RealBuoyManager.__init__(self, *mainNodeType)
 
 currentScene = Scene()
+
+
+def screenshots():
+
+    frame = 0
+    
+    s = Scene()
+        
+    vs1 = w.createVobScene()
+    # FIXME: move s to initial position
+    s.scene(vs1)
+
+    vs2 = w.createVobScene()
+    # FIXME: move s to final position
+    
+    s.scene(vs2)
+
+    for fract in (0, 1/3., 2/3., 1):
+        w.renderAnim(vs1, vs2, fract, 0, 1)
+        saveanim.saveframe("/tmp/buoyframe%i.png" % frame, w)
+        frame += 1
+
+    # FIXME: move s to shot position
+    vs = w.createVobScene()
+    w.renderStill(vs, 0);
+    saveanim.saveframe("/tmp/buoyframe%i.png" % frame, w)
+    frame += 1
+    
+        
+if 0:
+    screenshots()




reply via email to

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