stained glass


    Mar 13 2008 | 11:24 am
    Hello I can not find a technique for isolating, analysing and
    processing part af a matrix, which would be NOT
    rectangular. The idea is to make a sort of stained
    glass, which would change it's shape. I'd like to
    control this changes, let's say they should not be
    random. It seems to be rather heavy task for CPU, but I hardly
    imagine this effect in Open GL. In fact there are 2 tasks: 1st - draw this stained glass shape. 2nd - process picture or movie "under"it - to apply
    color and transparency variations according to areas on
    "upper" surface. Would anybody advise?

    • Mar 13 2008 | 3:10 pm
      Hi, i had similar ideas for a piece. i would use two layers for the same source : the top one with non rectangular holes using noise genrators on the alpha channel and applying shaders on the lower one. lots of fun stuff to do with it.
      here is a short example that shows you the process, hoping it helps :
      Quote: Onandoff wrote on Thu, 13 March 2008 12:24 ---------------------------------------------------- > Hello > I can not find a technique for isolating, analysing and > > processing part af a matrix, which would be NOT > > rectangular. The idea is to make a sort of stained > > glass, which would change it's shape. I'd like to > > control this changes, let's say they should not be > > random. > It seems to be rather heavy task for CPU, but I hardly > > imagine this effect in Open GL. > In fact there are 2 tasks: > 1st - draw this stained glass shape. > 2nd - process picture or movie "under"it - to apply > > color and transparency variations according to areas on > > "upper" surface. > Would anybody advise? ----------------------------------------------------
    • Mar 14 2008 | 8:57 am
      Hello Karrrlo Thanks for the suggestion. I have some troubles with shadres - probably my videocard is old, or there is some dofference
      between Mac and Windows shaders files. Strange, but brcosa almost does not work. I found that "mask" shapes would be more
      interesting if bfg would be 3 dimensional (320 240 1). But in fact with this patch I miss 2 things: 1. I can not control separate isoloted areas of "low" matrix. Let's say - the effect is applyed to the whole matrix. 2. still shapes look more or less as spots, but I've been thinking about those small fragments in stain glass (Notre Dame
      windows...), even with borders.
      Well. I think I should work on matrix analyser-reporter (sort of eye dropper + magic wand in Photoshop)
      Thanks for drawing me to shaders and slabs - I have to try them more Alex