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
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();
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
3 matches
Mail list logo