Actually having downloaded that picture and loaded it into the GIMP it turns out it's much easier than that.
Simply enable blending on the stateset. The image background has an alpha of zero and will then appear transparent. Regards, Kim. 2009/8/4 Kim Bale <[email protected]>: > Hi Alex, > > You'll need to use a black and white mask over your current texture > and blend the two together. To do that you'll need to set the blend > function to: > > osg::BlendFunc( GL_DST_COLOR, GL_ZERO ) > > and your mask would have a white silhouette of a woman on a plain > black background. > > More detail here: > http://jerome.jouvie.free.fr/OpenGl/Tutorials/Tutorial9.php > > Hope that helps. > > Kim. > > 2009/8/4 Alex Malhao <[email protected]>: >> Hi, >> >> I'm loading a osg map with osgviewer, but there are some pictures that >> should appear with a transparency. How can I make it work? The picture was >> already used in other osg applications and it was showing the appropriate >> transparency. >> >> The image is this: >> [Image: http://i26.tinypic.com/2wnbdix.png ] >> >> And it is used in: >> [Image: http://i30.tinypic.com/nv1t2v.jpg ] >> >> Thank you! >> >> Cheers, >> Alex[/img] >> >> ------------------ >> Read this topic online here: >> http://forum.openscenegraph.org/viewtopic.php?p=15783#15783 >> >> >> >> >> >> _______________________________________________ >> osg-users mailing list >> [email protected] >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

