28 |
from vob.putil.nvcode import parseCombiner |
from vob.putil.nvcode import parseCombiner |
29 |
from vob.paper.texcache import getCachedTexture |
from vob.paper.texcache import getCachedTexture |
30 |
|
|
31 |
|
dbg = 0 |
32 |
|
|
33 |
class IrreguFrame(IrregularFrame): |
class IrreguFrame(IrregularFrame): |
34 |
dicefactor = .4 |
dicefactor = .4 |
35 |
# dicefactor = 0.03 |
# dicefactor = 0.03 |
36 |
|
|
37 |
print "Start Irregu shading..." |
if dbg: print "Start Irregu shading..." |
38 |
|
|
39 |
tex = GL.createTexture() |
tex = GL.createTexture() |
40 |
tex = getCachedTexture([128, 128, 0, 1, "INTENSITY", "LUMINANCE", |
tex = getCachedTexture([128, 128, 0, 1, "INTENSITY", "LUMINANCE", |
44 |
# "scale", "0.2", "freq", "1", "df", "2", |
# "scale", "0.2", "freq", "1", "df", "2", |
45 |
# "scale2", "0.05", "freq2", "12", "df2", "1.5"]) |
# "scale2", "0.05", "freq2", "12", "df2", "1.5"]) |
46 |
|
|
47 |
print "part 1 done" |
if dbg: print "part 1 done" |
48 |
ripple_scale = 0.25 |
ripple_scale = 0.25 |
49 |
tex2 = getCachedTexture([256, 256, 0, 4, "RGBA", "RGBA", |
tex2 = getCachedTexture([256, 256, 0, 4, "RGBA", "RGBA", |
50 |
"irregu", ["radius", "2", |
"irregu", ["radius", "2", |
51 |
"ripple_scale", str(ripple_scale), |
"ripple_scale", str(ripple_scale), |
52 |
"angle", "0", |
"angle", "0", |
53 |
"angles", "3", |
"angles", "3", |
54 |
"eps", ".125", |
"eps", ".250", |
55 |
"scaling", "const"]], |
"scaling", "const"]], |
56 |
shade_all_levels = 1) |
shade_all_levels = 1) |
57 |
|
|
58 |
print "done" |
if dbg: print "done" |
59 |
|
|
60 |
boxtex = GL.createTexture() |
boxtex = GL.createTexture() |
61 |
|
|