<div dir="ltr"><div><div><div><div><br></div>For creating a circular hole into a plane, clip planes indeed will not work. But generally speaking, flipping a clipping plane reverses its effect (boolean negation)<br><br></div>To punch holes in arbitrary geometry at render time, a fragment shader will be a good solution.<br><br></div>You can check either object or world coordinates, e.g. distance to a given centerpoint and discard the fragment entirely if the computed distance is below a threshold radius.<br><br></div><div>If you need multiple holes, you need to pass a list of such centerpoints and radii to the shader, e.g. in a Uniform array.<br><br></div>Christian<br><br><div><br><div><div><div><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-23 10:49 GMT+02:00 Werner Modenbach <span dir="ltr"><<a href="mailto:Werner.Modenbach@texion.eu" target="_blank">Werner.Modenbach@texion.eu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Are you sure? I think this will leed to nothing being displayed. But
I didn't verify it. It is just how I understand clipping.<div><div class="h5"><br>
<br>
<div>Am 23.07.2015 um 10:35 schrieb
Christian Buchner:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><br>
I think you only need to flip the clipping plane around (reverse
the plane's normal vector) to get the desired effect.<br>
<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-07-22 21:28 GMT+02:00 Erik Hensens
<span dir="ltr"><<a href="mailto:ehensens@hunter.com" target="_blank">ehensens@hunter.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi
everyone!<br>
<br>
I have a geode that is just a quad rectangular surface and I
need to be able to put circular holes in it. To better
visualize what I'm talking about, think about a flat slice
of Swiss cheese.<br>
<br>
I just discovered the ClipNode node and I figured I could
achieve what I want by adding clip nodes that were the
roughly circular, but ClipNode apparently behaves opposite
to how I originally thought (I'm new to this).<br>
<br>
Is there a way to make ClipNode remove parts of the scene
instead or keeping only those parts in the clip node region?<br>
<br>
Or, is there a better way to achieve this flat slice of
Swiss cheese shape? Thanks very much in advance!<br>
<br>
Thank you!<br>
<br>
Cheers,<br>
Erik<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=64437#64437" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=64437#64437</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
osg-users mailing list
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a>
</pre>
</blockquote>
<br>
</div></div><span class="HOEnZb"><font color="#888888"><div>-- <br>
<b>TE<span style="color:red">X</span>ION Software Solutions,
Rotter Bruch 26a, D-52068 Aachen</b><br>
Phone: +49 241 475757-0<br>
Fax: <a href="tel:%2B49%20241%20475757-29" value="+4924147575729" target="_blank">+49 241 475757-29</a><br>
Web: <a href="http://texion.eu" target="_blank">http://texion.eu</a><br>
eMail: <a href="mailto:info@texion.eu" target="_blank">info@texion.eu</a><br>
</div>
</font></span></div>
<br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div><br></div>