erase_color in node / Slitscan patch

    Mar 31 2013 | 4:00 pm
    I'm working on a slitscan patch. Everything was going fine, but now I'm stuck on something...
    Here is a patch to demonstrate my problem.
    I want to add a delay, so I can play back the last 2-3s. And of course I would prefer to do it only with the GPU
    Any help would be much appreciated ! Thanks

    • Mar 31 2013 | 7:21 pm
      i would recommend you do this a bit differently, using shared contexts. you can render and draw the scene once, capture it to texture, and share that texture with the shared-context. that way you'll have the exact same scene in both contexts, and only have to render it once.
      you can create the smearing effect with the captured texture, by setting the gl.node @erase_color to 0 0 0 0, and using to create the effect.
      patch below:
    • Apr 01 2013 | 6:48 am
      Rob, you rock ! I would never have found this solution. + It might be the occasion for me to get into gen things. Actually, it's a problem I had in another patch/project, but never found the time to make a simple patch to demonstrate. One stone two birds :)
      Thanks a lot, I owe you one !
      ps: here is a early test of this slitscan patch: