Stencil Buffer
in
Core Library Questions
•
1 year ago
Hello folks,
I am trying to do some masking using OpenGL and although I can set the stencil, it appears the stencil test is always returning true. Digging around the internet, I found a tip pointing that one must request stencil bits to the canvas in order to make stencil tests work properly. Something in the lines of:
GLCapabilities capabilities = new GLCapabilities();
capabilities.setStencilBits(8);
and the assign this to the a GLCanvas. Does anyone have any experience using Stencil and capabilities with processing standart OpenGL, I mean without libraries like GLgraphics? I would really appreciate any help on how to get this working with either Processing 1.5 or 2.0.
Cheers,
1