[osg-users] Billboard problem

2009-08-05 Thread Markus Husseini
Hello, i tried to place some treebillboards in my Terrain, but i have problems with the texturing. I have two textures: [Image: http://www.husseini.de/markus/C.jpg ] [Image: http://www.husseini.de/markus/T.jpg ] If I render the billboard the black color should be invisible but it doesn't

Re: [osg-users] Billboard problem

2009-08-05 Thread Tony Horrobin
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();

Re: [osg-users] Billboard problem

2009-08-05 Thread Markus Husseini
Ok thx now it works -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15881#15881 ___ osg-users mailing list osg-users@lists.openscenegraph.org