Hi,

Have your textures got an alpha channel?  Try setting the alpha of the black 
region to zero and set an alpha function of GEQUAL and a reference value of 0.05

So, declare a member variable:

Code:

osg::ref_ptr< osg::AlphaFunc > m_refAlpha;



Then:

Code:

m_refAlpha = new osg::AlphaFunc();
m_refAlpha->setFunction( osg::AlphaFunc::GEQUAL, 0.05f );
m_refStateSet->setAttributeAndModes( m_refAlpha.get(), osg::StateAttribute::ON 
);



The billboard tutorial shows this.

Cheers,

Tony
[/code]

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





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

Reply via email to