I have been trying to use a Geo as a mask for another Geo. I have hit a big wall. I followed the examples in the openGL section of the Gem examples but it seems like it only sees one instance at a time. I have attached a test patch. If anyone has any openGL knowhow or any experience with this problem that can give me a hand I would be greatful.
Thanks,
Alain
-
Help masking Goes wih other Geos in Gem
-
I figured it out I think. The problem was that the example used in the gem examples was clearing the color buffer and the depth buffer so no other object could exist. What I did was define the colormask to 0 for stencil and 1 for not stencil that way the color and depth buffer did not have to be cleared. I know nothing of opengl but I read this at an opengl gaming website and it worked. I have attached the example.
Thanks,
Alain -
nice work!
-
Hi everybody! Hi ding, I downloaded your "matte_test" to do the same thing: masking a gem object with another. I used your patch to build one patch of mine, but I have a doubt: if you download my patch (attached) you'll see two white eyes (two circles) gradually masked by degrees behavior. I used a [polygon 5] to mask the circles. I don't know...but I suspect that it's not the easiest way to do the work. So...could you give me an advice to simplify the patch? Thanks to everybody wants to help me!