Hi all,

I have to use stencil buffer in OpenSG and I've found the StencilChunk.
But I can't find out how to use the StencilChunk.
Does anybody show me the way to use the StencilChunk?
Any simple example will be very helpful to me.

What exactly do I want to achieve is,
There are two objects in my scene graphs. One is torus and the other is
cube.

glClear(GL_STENCIL_BUFFER_BIT);
glStencilFunc(GL_ALWAYS, 0x1, 0x1);
glStencilOp(GL_REPLACE, GL_REPLACE, GL_REPLACE); glBegin(GL_POINTS); Renders
the cube glEnd();

glStencilFunc(GL_NOTEQUAL, 0x1, 0x1);
glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP);
Renders the torus

So the torus must be rendered within only the area which is the cube is not
rendered.

Sorry for my poor English. :D
Thanks in advance.

Estee



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to