<div dir="ltr"><div dir="ltr">Hi Christoph,<div>attached is an osg file that does what I think you want,</div><div>unzip and view with:</div><div>"osgviewer cow.osg.0,-5,0.trans erasor.osg.10,10,10.scale"</div><div><br></div><div>The osg file works by using a low (negative) render bin number to force the draw order,</div><div>first renderbin -2 draws the erasor geometry and the outline,</div><div>than renderbin -1 renders an invisible quad (colormast all OFF)</div><div>to fill the depth buffer with 0 (depth range 0-0),</div><div>so it's pixels won't be overwritten by the normal rendering done later.</div></div>Laurens.<div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 12, 2018 at 7:59 AM Christoph Dohmen <<a href="mailto:christoph.dohmen@cae.de">christoph.dohmen@cae.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Chris,<br>
<br>
the original goal is drawing a decorated line where the decoration interrupts and keep the background visible. I tried to visualize the elements and the seps which are acutally working. I got a few keywords like 'stencil', 'render to texture' but the samples are all related to textured items covering textured items and not to polylines covered by textured items.<br>
<br>
Thank you!<br>
<br>
Cheers,<br>
Christoph<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=74716#74716" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=74716#74716</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></div></div>