Gaussian on multiple sketch shapes!?

Brischitte's icon

Dear Community,

I'm working on a patch that is creating 8 different shapes with jit.gl.sketch to be displayed on a jit.window.
What I now need is a blur on that objects.
By capturing the sketch object containing the 8 shapes to a texture, and pass that through jit.gl.slab.gauss6x on a videoplane worked pretty fine.

But now I want to be able to control the blur amount of each shape separately.
Therefor I created 8 sketch and 8 videoplane objects - but now I have compositing/timing/blending problems on how to display the sketches on the jit.window.

Here's my patch simplified with only 2 sketch-objects sent through the blur to a videoplane each.
I hope someone can disclose the mystery how these objects can work together well.
Thanks!

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

Luis Marques's icon

hi,

I think you need to tell videoplane object which texture you want, like, 'jit.gl.videoplane @texture tex2' mor text1 and remove the @automatic 0'

Luis Marques

Brischitte's icon

Thanks a lot Luis!
one last issue: The blending of the two textures. By trying it with colormode max tends to crash. I hope someone could help me out with that last thing.
Updated patch follows. There should be the red and the white circle visible.

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

Rob Ramirez's icon

in each of your gl.sketch command list messages, replace "reset" with "reset, glclearcolor 0. 0. 0. 0., glclear"

Luis Marques's icon

hi,

I don't know if this is a good solution, perhaps you should try poly~ to draw many circles simultaneous on the jit.window.
hope this can help.

Luis Marques

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