[osg-users] Transparency problem

Catalin Flower inbox.icf at gmail.com
Thu Jun 13 06:32:35 PDT 2019


Hi,

This might help you, you have to set the hint


Code:
	if (transparent)
	{
		geode->getOrCreateStateSet()->setMode(GL_BLEND, osg::StateAttribute::ON);
		geode->getOrCreateStateSet()->setRenderingHint(osg::StateSet::TRANSPARENT_BIN);
	}
	else
	{
		geode->getOrCreateStateSet()->setRenderingHint(osg::StateSet::OPAQUE_BIN);
	}



Thank you!

Cheers,
Catalin

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76285#76285







More information about the osg-users mailing list