Respected GEM wizards of the Internet,
Over the last few weeks I have been trying to build upon the [scopeXYZ~] object, to make its lines fade out over time (similar to analogue oscilloscopes - I assume this will be less tiring to the eye to look at than the flickering oscilloscope images I get otherwise). Because I still have little experience with GEM, my luck in the matter so far has been minimal, which is why I would like to ask for your advice or input.
My intended approach comprises adding a weakened version of the previous image output to the current scopeXYZ output at each rendering cycle, and then to render this as a texture on a square (the fastest method of display, as I understand).
So far I have managed to render the oscilloscope output to a [gemframebuffer], and to acces this pix through a different gemhead and rendering it to a square.
From here on, I would like to mix this pix with the previous output (which has been scaled down in strength) before rendering it to the square, to add a logarithmic decay to the strength of the oscilloscope traces. However, I cannot seem to succeed in this final but crucial step.
I have looked into a decent amount of documentation regarding GEM, including manuals, tutorials, examples and forum discussions, but I am a little bewildered by the functioning of GEM, and I feel stuck on this matter.
Would anybody be able and willing to give me some suggestions as to how I might approach this? Should I be working with buffers at all, for example (they seem to slow the patch down a lot), or are there other ways of mixing a current oscilloscope output with a darkened version of the previously presented output?
I have attached my current patch to this post. Any help or advice would be much appreciated.