Forums > Jitter

erase_color in node / Slitscan patch

March 31, 2013 | 4:00 pm

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. –

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

patch below:

– Pasted Max Patch, click to expand. –

April 1, 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 !

Yoann

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


Viewing 3 posts - 1 through 3 (of 3 total)