OpenGL stencil buffer in Jitter?

Florian's icon

Hi,

I am trying to use the OpenGL stencil buffer with jit.gl.sketch but cannot figure out how to set it up correctly. Is this function implemented at all, and if so, does anybody have an example of an implementation for me?

What I want to do is to dynamically prevent certain areas of objects (mostly lines) from being drawn. I do not want to remove the lines from the command list, though. Is this possible with Jitter's OpenGL implementation?

Many thanks,

Florian

justin's icon

i'm no open GL expert, but perhaps this could be done by dynamically applying a transparent texture to the (hidden) areas of an object? although technically speaking these areas would still be drawn, and yet made invisible...

just a thought!