jit.gl.pass @fxname smear (erase_color to texture)

t's icon

Hi,

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

I need some help with jit.gl.pass. Can't get the smear effect to work...

t's icon

PS: Basically I want to achieve **exactly** the same effect as with jit.gl.render. I am a bit concerned about the quality attribute that needs to be set to low - what does that mean? I plan to export a 4K movie so I don't want to loos any quality.

t's icon

There is another solution that uses co.accum.erase.jxs shader (I modified the patch made by DTR) but the black does not stay totally black when going from erase_color 1. to 0. In the same topic from 2011 (https://cycling74.com/forums/erase_color-help/) Wesley Smith said "When capturing with cameras and nodes, the alpha component doesn’t do the smear-o-vision like it does when rendering to the window. I’ll log this as a feature request"....I think that would be very handy to have!

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

So what technique would give me exactly the same results as jit.gl.render?

Rob Ramirez's icon
Max Patch
Copy patch and select New From Clipboard in Max.

simply set @erase_color 0 0 0 0 on your jit.gl.node.
quality attribute sets the data type of the internal textures, and doesn't affect the output texture quality. for this specific effect, i've found that in some situations there will be a kind of flashing effect unless the quality is set to "lo", but not all cases require this.