/[libvob]/libvob/vob/putil/effects.py
ViewVC logotype

Diff of /libvob/vob/putil/effects.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by tjl, Sat Aug 16 12:20:14 2003 UTC revision 1.4 by tjl, Sat Aug 16 12:22:24 2003 UTC
# Line 28  import math Line 28  import math
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",
# Line 42  class IrreguFrame(IrregularFrame): Line 44  class IrreguFrame(IrregularFrame):
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    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26