____________________________________________________________________________
__
Gordon Tomlinson
gor...@gordontomlinson.com IM: gordon3db...@3dscenegraph.com
www.vis-sim.com
www.gordontomlinson.com
www.PhotographyByGordon.com
____________________________________________________________________________
__
-----Original Message-----
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of nikhil
raprolu simha
Sent: Monday, June 21, 2010 1:20 PM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Making objects transparent without using textures at
all
Hi,
I want to know if it is possible to make objects transparent without using a
transparent texture .I am using the following code but it turns out to be
opaque.
ss->ref();
ss->setMode(GL_BLEND, StateAttribute::ON);
ss->setMode(GL_FOG, StateAttribute::ON);
-----------ss->setAttribute(fog,osg::StateAttribute::ON);
| ss->setRenderBinDetails(11,"RenderBin");
|
Am i doing something wrong with the fog properties?
or
is there a property of fog wich should be enabled to make the object
transparent?
Thank you!
Cheers,
nikhil
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29202#29202
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org