jit.sprinkle with jit.gl.pix possible ?

timtom's icon

hello jitterists,

is it possible to bring the wonderfull [jit.sprinkle] effect to the opengl world using gen [jit.gl.pix] ?

the effect is a combination of edge detection and noise.

it would be realy great to transform this effect !
TT

Wesley Smith's icon
Max Patch
Copy patch and select New From Clipboard in Max.

You have to supply the noise texture to jit.gl.pix since jit.gl.pix doesn't have a noise operator, but otherwise it's totally possible. There are a few tricky details to this filter but here it is:

Wetterberg's icon

wow - Nice, Wesley.

I just had a little "make a funny face" photobooth++ session with this variation of it:

Max Patch
Copy patch and select New From Clipboard in Max.

(sorry, v6)

timtom's icon

thank you very much wesley !
now for me it is definitly time to switch to max6 :-)
is it difficult to implement a noise shader ?
it would be cool to use the gpu for generating noise !
TT

Wesley Smith's icon

CPU-based noise functions rely on external state with some variable that is fed back onto itself. Since in shaders you can't read and write into the same buffer, GPU implementations have to take a different approach. I personally find it easier to just use a noise texture. Here's a GLSL-based noise shader:

timtom's icon

hello wesley,

having a smal problem with the gen-sprinkle.
i can not adjust the "range x" and the "range y" independently like i can with the jit.sprinkle object. if i change both range attributes, i get always a diagonal distortion.

here is a smal patch, which shows the difference.
perhaps it is possible to get the same results with the gen variant.

Max Patch
Copy patch and select New From Clipboard in Max.

thanks in advance,
TT