Err FOG has nothing to do with transparency, you need blending on and you
want the object to typically be in the transparent bin

ss->setMode( GL_BLEND, osg::StateAttribute:ON );
ss->setRenderingHint(osg::StateSet::TRANSPARENT_BIN);

Ways to apply transparency ( see examples how to create and apply the first
3)


Via :
Textures
Materials
Vertex colors
Shaders




____________________________________________________________________________
__
Gordon Tomlinson 

[email protected] IM: [email protected] 
www.vis-sim.com        
www.gordontomlinson.com
www.PhotographyByGordon.com
____________________________________________________________________________
__


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of nikhil
raprolu simha
Sent: Monday, June 21, 2010 1:20 PM
To: [email protected]
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
[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

Reply via email to