<div dir="ltr">Hi Erik,<div>the effect you see is caused by your blend function being order dependent, for a good result transparent triangles need to be drawn back to front. </div><div>Did you set the rendering_hint to TRANSPARENT_BIN (binNumber 10 / binName DepthSortedBin)?</div><div>like in stateSet->setRenderingHint(StateSet::TRANSPARENT_BIN);</div><div>Regards, Laurens.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 3, 2016 at 9:48 PM, Erik Hensens <span dir="ltr"><<a href="mailto:ehensens@hunter.com" target="_blank">ehensens@hunter.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everybody!<br>
<br>
I have two geodes, each is a flat circular disk with some circular holes removed. Each geode is flat in the YZ plane, and they are stacked against each other with a small amount of spacing, centered at (x1, 0, 0) and (x2, 0, 0). There is a single parent matrix transform node that is the parent of both of these geodes, and I use the matrix transform to set different rotations. Each of these disk geodes is semi-transparent by means of calling setAlpha on their materials for the FRONT_AND_BACK faces.<br>
<br>
The problem is that at certain parent matrix transform rotations certain parts of the first disk are more visually prevalent and at other rotations certain parts of the second disk are more visually prevalent, i.e. how these two semi-transparent geodes are viewed against each other changes based on the rotation of the parent matrix transform. I've attached two images to show you the difference.<br>
<br>
What is causing this effect and how can I eliminate it? I want it to look the same no matter what the rotation of the parent matrix transform is.<br>
<br>
Thanks in advance for any help!<br>
<br>
Cheers,<br>
Erik<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=66186#66186" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=66186#66186</a><br>
<br>
<br>
<br>
<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>