Re: [osg-users] Viewing Stacked Semi-Transparent Geodes

2016-02-04 Thread Erik Hensens
Thank you for your response. In the interest of full documentation, I thought I should note that I tried setting the blend function as osgoit does, but it didn't make a difference in my example. Thanks anyway! cbuchner1 wrote: > There are techniques to perform order independent transparent rend

Re: [osg-users] Viewing Stacked Semi-Transparent Geodes

2016-02-04 Thread Erik Hensens
Thank you very much for your response. I actually was calling setRenderingHint(StateSet::TRANSPARENT_BIN), but I commented that line out and it actually started working properly. Thanks for the direction! Voerman, L. wrote: > Hi Erik,the effect you see is caused by your blend function being ord

Re: [osg-users] Viewing Stacked Semi-Transparent Geodes

2016-02-04 Thread Christian Buchner
There are techniques to perform order independent transparent rendering, one of these is demonstrated in the osgoit example of OpenSceneGraph. However osgoit uses a multipass technique and can be rather slow. Christian 2016-02-04 9:31 GMT+01:00 Voerman, L. : > Hi Erik, > the effect you see is c

Re: [osg-users] Viewing Stacked Semi-Transparent Geodes

2016-02-04 Thread Voerman, L.
Hi Erik, 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. Did you set the rendering_hint to TRANSPARENT_BIN (binNumber 10 / binName DepthSortedBin)? like in stateSet->setRenderingHint(StateSet::TRANSPA

[osg-users] Viewing Stacked Semi-Transparent Geodes

2016-02-03 Thread Erik Hensens
Hi everybody! 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