memory leak
so i am trying to to write a image from the gl plane into the jitter matrix and i end up with a major memory leak. if i leave this model up and running it will crash because of the amount of memory that i am storing into the gl plane. so i need to clear the gl plane while saving the line that i have drawn. i just want the model to keep drawing and drawing on top of itself. any help is really appreciated. is there a easy way to write from the gl plane into the jitter matrix then clear the gl plane? and you might need to rotate the world to see the first lines that i am drawing:
you can avoid running out of memory by reseting the sketch for each new line and capturing the sketch to a texture. you can then alpha-blend with the previous sketch contents using jit.gl.pix (or gl.slab with an alphablend shader).
here's a patch to get you started. gl.node's erase_color attribute must be 0 0 0 0, in order to properly alpha-blend the texture. also, the gl.pix is set to @thru 0, meaning you must bang it to ouput, so it will only output and alpha-blend when there's a new line.
Thanks! I will give this a try and hopefully that will solve the issue.