[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/gfx/demo irregu3.py
From: |
Janne V. Kujala |
Subject: |
[Gzz-commits] gzz/gfx/demo irregu3.py |
Date: |
Fri, 25 Oct 2002 06:39:06 -0400 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Janne V. Kujala <address@hidden> 02/10/25 06:39:06
Modified files:
gfx/demo : irregu3.py
Log message:
Add "s"/"S" for changing texture scaling
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/demo/irregu3.py.diff?tr1=1.20&tr2=1.21&r1=text&r2=text
Patches:
Index: gzz/gfx/demo/irregu3.py
diff -u gzz/gfx/demo/irregu3.py:1.20 gzz/gfx/demo/irregu3.py:1.21
--- gzz/gfx/demo/irregu3.py:1.20 Fri Oct 25 05:17:53 2002
+++ gzz/gfx/demo/irregu3.py Fri Oct 25 06:39:06 2002
@@ -5,7 +5,7 @@
ripple_scale = .25
size = 256
lodbias = 0
-
+texscale = 1
use_texture = 0
matrices = [ "1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1",
@@ -147,7 +147,12 @@
elif k == "t":
global use_texture
use_texture = not use_texture
-
+ global lodbias
+ if k == "b": lodbias += .25; print "lodbias", lodbias
+ elif k == "B": lodbias -= .25; print "lodbias", lodbias
+ global texscale
+ if k == "s": texscale *= 1.2; print "texscale", texscale
+ elif k == "S": texscale /= 1.2; print "texscale", texscale
# alpha(y) = e / y * f >= e
@@ -292,7 +297,7 @@
cs3 = vs.coords.affineCoordsys(0, 0, 512, 384, self.scale, 0, 0,
self.scale)
vs.matcher.add(cs3, "3")
- texscale = 1
+ #texscale = 1
x0 = -1 - 0.5 * ripple_scale * texscale
x1 = 1 + 0.5 * ripple_scale * texscale
@@ -377,10 +382,6 @@
if k == "Down": self.ty += .1
if k == "Left": self.tx -= .1
if k == "Right": self.tx += .1
-
- global lodbias
- if k == "b": lodbias += .25; print "lodbias", lodbias
- if k == "B": lodbias -= .25; print "lodbias", lodbias
currentScene = IrreguScene()
- [Gzz-commits] gzz/gfx/demo irregu3.py, Janne V. Kujala, 2002/10/18
- [Gzz-commits] gzz/gfx/demo irregu3.py, Janne V. Kujala, 2002/10/19
- [Gzz-commits] gzz/gfx/demo irregu3.py, Janne V. Kujala, 2002/10/19
- [Gzz-commits] gzz/gfx/demo irregu3.py, Janne V. Kujala, 2002/10/22
- [Gzz-commits] gzz/gfx/demo irregu3.py, Janne V. Kujala, 2002/10/22
- [Gzz-commits] gzz/gfx/demo irregu3.py, Janne V. Kujala, 2002/10/23
- [Gzz-commits] gzz/gfx/demo irregu3.py, Janne V. Kujala, 2002/10/24
- [Gzz-commits] gzz/gfx/demo irregu3.py, Janne V. Kujala, 2002/10/25
- [Gzz-commits] gzz/gfx/demo irregu3.py,
Janne V. Kujala <=
- [Gzz-commits] gzz/gfx/demo irregu3.py, Janne V. Kujala, 2002/10/28
- [Gzz-commits] gzz/gfx/demo irregu3.py, Janne V. Kujala, 2002/10/29
- [Gzz-commits] gzz/gfx/demo irregu3.py, Janne V. Kujala, 2002/10/29
- [Gzz-commits] gzz/gfx/demo irregu3.py, Janne V. Kujala, 2002/10/29
- [Gzz-commits] gzz/gfx/demo irregu3.py, Janne V. Kujala, 2002/10/29
- [Gzz-commits] gzz/gfx/demo irregu3.py, Janne V. Kujala, 2002/10/29
- [Gzz-commits] gzz/gfx/demo irregu3.py, Janne V. Kujala, 2002/10/30
- [Gzz-commits] gzz/gfx/demo irregu3.py, Janne V. Kujala, 2002/10/31