[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] libvob/vob/paper papermill.py
From: |
Janne V. Kujala |
Subject: |
[Gzz-commits] libvob/vob/paper papermill.py |
Date: |
Wed, 30 Apr 2003 06:08:56 -0400 |
CVSROOT: /cvsroot/libvob
Module name: libvob
Changes by: Janne V. Kujala <address@hidden> 03/04/30 06:08:56
Modified files:
vob/paper : papermill.py
Log message:
make papers more similar between profiles
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/vob/paper/papermill.py.diff?tr1=1.4&tr2=1.5&r1=text&r2=text
Patches:
Index: libvob/vob/paper/papermill.py
diff -u libvob/vob/paper/papermill.py:1.4 libvob/vob/paper/papermill.py:1.5
--- libvob/vob/paper/papermill.py:1.4 Tue Apr 29 09:33:24 2003
+++ libvob/vob/paper/papermill.py Wed Apr 30 06:08:56 2003
@@ -120,23 +120,23 @@
pap = PaperHanger()
pap.reg = Registry()
+ rng = java.util.Random(pap.reg.get(regseed, "seed", seed))
+ for foo in range(0,20): # eat bad beginning (Java's bad PRNG)
+ rng.nextInt()
+
+ colors = Colors(rng.nextInt(), colors = numcolors, minlum = minlum,
+ blend = blend)
+ textures = Textures(rng.nextInt())
+ rootrep = TexGenXYRepeatUnit(rng, scale = 0.3 * scaleFactor, vecs =
vecs)
passes = [ { "trans" : 0, "emboss" : 0 },
{ "trans" : .5, "emboss" : 0 },
{ "trans" : .9375, "emboss" : 0 },
#{ "trans" : 0, "emboss" : 1 },
][0:numpasses]
-
- rng = java.util.Random(pap.reg.get(regseed, "seed", seed))
- for foo in range(0,20): # eat bad beginning (Java's bad PRNG)
- rng.nextInt()
seeds = [rng.nextInt(2000000000) for foo in passes]
# XXX: TODO: these could be passed inside the paper object
# (and then the textures, too, would be protected from gc)
- colors = Colors(rng.nextInt(), colors = numcolors, minlum = minlum,
- blend = blend)
- textures = Textures(rng.nextInt())
- rootrep = TexGenXYRepeatUnit(rng, scale = 0.3 * scaleFactor, vecs =
vecs)
pap.setNPasses(len(passes))