[osg-users] Draw two translucent geometries in specific order
Robert Osfield
robert.osfield at gmail.com
Mon May 21 09:35:15 PDT 2018
Hi Kristofer,
StateSet::serRenderingHint pre-dates StateSet::setRenderBinDetails()
and was kept for backwards compatibility and ease of use, as you say
it overrides previous calls to RenderBinDetails as it actually calls
RenderBinDetails itself.
Robert.
On 21 May 2018 at 16:29, Kristofer Krus <kristofer.krus at liu.se> wrote:
> Hi Robert,
>
> Thanks for your reply.
>
> The problem was that setRenderingHint(osg::StateSet::TRANSPARENT_BIN) was called after I called setRenderBinDetails. While I checked that setRenderBinDetails was not called anywhere else in the code, I didn't know that you could also choose render bin through the setRenderingHint method. Removing the calls to setRenderingHint resolved the problem.
>
> Cheers,
> Kristofer
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=73698#73698
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
More information about the osg-users
mailing list