462 |
rgb3DTextures = [ |
rgb3DTextures = [ |
463 |
("rgbw", [128, 128, 128, 3, |
("rgbw", [128, 128, 128, 3, |
464 |
"RGB", "RGB", |
"RGB", "RGB", |
465 |
"filereader", ["file", "lava/gfx/data/map3d_F0.01_k0.0325_eps0.015_teps0.5_iter10000.dat", "scale", "10", "bias", "-1.5" ]]), |
"filereader", ["file", "lava/gfx/data/map3d_F0.01_k0.0325_eps0.015_teps0.5_iter5000.dat", "scale", "10", "bias", "-1.5" ]]), |
466 |
] |
#("rgbw", [64, 64, 64, 3, |
467 |
|
# "RGB", "RGB", |
468 |
|
# "filereader", ["file", "lava/gfx/map3d.dat", "scale", "10", "bias", "-3" ]]), |
469 |
|
|
470 |
|
] |
471 |
|
|
472 |
dotTextures = [ |
dotTextures = [ |
473 |
("dotprodn", [512, 512, 0, 2, |
("dotprodn", [512, 512, 0, 2, |
485 |
] |
] |
486 |
|
|
487 |
self.textures = { |
self.textures = { |
488 |
"R2": [ NamedTexture(name, args) for (name, args) in rgbTextures ], |
#"R2": [ NamedTexture(name, args) for (name, args) in rgbTextures ], |
489 |
"R3": [ NamedTexture(name, args) for (name, args) in rgb3DTextures ], |
"R3": [ NamedTexture(name, args) for (name, args) in rgb3DTextures ], |
490 |
"D2": [ NamedTexture(name, args) for (name, args) in dotTextures ], |
#"D2": [ NamedTexture(name, args) for (name, args) in dotTextures ], |
491 |
} |
} |
492 |
|
|
493 |
def makePaperPass(self, seed, ppass, trans = 0, type = None, emboss = 0): |
def makePaperPass(self, seed, ppass, trans = 0, type = None, emboss = 0): |
506 |
selectRandom(self.textures[types[i]],rnd) |
selectRandom(self.textures[types[i]],rnd) |
507 |
(t, type) = selectDet(self.textures[types[i]], type) |
(t, type) = selectDet(self.textures[types[i]], type) |
508 |
else: |
else: |
509 |
|
#print types, self.textures |
510 |
t = selectRandom(self.textures[types[i]],rnd) |
t = selectRandom(self.textures[types[i]],rnd) |
511 |
|
|
512 |
if emboss: |
if emboss: |