On 04/17/2014 01:06 PM, Steven Powers wrote:
> Hi,
> 
> I tried to add a texture overlay that gets rendered through an
> orthographic projection at the top of the scene graph. When I do so
> all objects in the background of the scene that have transparency are
> no longer visible.
> 
> What am I doing wrong?
> 
> The texture is a png with transparency applied to a quad and GL_BLEND
> is turned on. Objects without transparency can still be seen.
> 
> stateset->setMode(GL_BLEND,osg::StateAttribute::ON);
> 
> Thank you!
> 
> Cheers, Steven
Hi Steven,

One idea - did you place the geometry into the TRANSPARENT_BIN?

stateset->setRenderingHint(osg::StateSet::TRANSPARENT_BIN);

-Josh
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to