I couldn't view your screen shot for some reason. I'm assuming you are
clipping a model and seeing "inside" a part of the model that is solid, and
you want to render a polygon coincident with the clip plane that only draws
where there are these "holes".

The stencil buffer has been used for CSG tasks like these for some time. The
concept is similar to how stencil is used for volumetric shadows; even
stencil values mean "don't draw" and odd stencil values mean "it's a hole".
The OpenGL red book covers this algorithm in some detail, if I remember
correctly.

Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
+1 303 859 9466

-----Original Message-----
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Paul
Griffiths
Sent: Friday, May 22, 2009 4:06 PM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Capping holes made by clipping?

Hi,
Im using a clipNode, and when I clip a model, i get a hole, can these be
filled?
... 

Thank you!

Cheers,
PaulG

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=12796#12796





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to