erase_color in node / Slitscan patch

Mar 31, 2013 at 4:00pm

erase_color in node / Slitscan patch

Hi,

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

Yoann

– Pasted Max Patch, click to expand. –
#67446
Mar 31, 2013 at 7:21pm

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 jit.gl.pix to create the effect.

patch below:

– Pasted Max Patch, click to expand. –
#242645
Apr 1, 2013 at 6:48am

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 !

Yoann

ps: here is a early test of this slitscan patch: https://vimeo.com/61000279

#242646

You must be logged in to reply to this topic.