GL trails

postrik's icon

Hi, I'm having a problem with GL trails from a moving gridshape that can be created by reducing the gl render object's erase. I can see the trails no problem when the erase is set to around .02 and when the gridshape is moving without a background, but when I move the gridshape in front of another gridshape the trails disappear.
I incorrectly assumed this was a simple blend_mode issue or something but was informed by c74 support that getting layered render trails to appear would "require some more advanced patching". I'm not really sure what this patching would involve, so if anyone could point me in the right direction to layer moving gl gridshape trails over inert gl gridshapes I would greatly appreciate it.

Thanks

Phil

andré sier's icon

hi

try
color 1. 1. 1. $1

each
jit.gl.gridshape @blende_nable 1

a

postrik's icon

Thanks for the response. Adjusting the gridshape's opacity/blend attribute with the color message does not affect it's ability to overlay trails over other gridshapes. Please see this example patch:

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

yacine's icon

here's a way to do it with several instances of an object in a jit.gl.sketch and a queue list of
the previous positions.

'hope it inspires you.

//yac

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