We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm looking to do a background invert filter for geometry (not post fx) and I've been told I can accomplish this by either:
a) multipass rendering, using a frame buffer and a shader.
b) change the openGL blend mode as suggested here.
Can someone tell me if b is possible using processing, and how? I know it's something to do with the opengl library wrapper in the graphics class but my attempts to use it have failed.
Thanks!
Answers
Which version of processing? (The answer changes with version)
I'm running 2.2.1.
um, don't know. searching the forums i get the following code snippets to access opengl directly
here's what i used 3 years ago (probably 1.5.1 as that's what i usually use)
here's something from 2 years ago:
http://forum.processing.org/one/topic/how-to-port-old-pgraphics-code-to-processing-2-alpha-additive-blending.html
Thankyou Koogs. Unfortunately none of those solutions work for me. it seems the gl object in the pgl doesn't exist for me (null ref)...