J-S's response is correct. But honestly I think you should read through
the OpenGL red book. From your posts, it sounds like you would benefit
from the knowledge contained in that book. Knowing OpenGL will help
immensely with knowing OSG.
The OSG Quick Start Guide also contains a short list of good reference
material.
Paul Martz
Skew Matrix Software LLC
_http://www.skew-matrix.com_ <http://www.skew-matrix.com/>
+1 303 859 9466
Akilan Thangamani wrote:
Hi,
I tried with the following code to get fading effect from the node to be
rendered . I don't get the effect. I wud like to know where I do mistake.
.....
........
.........
osg::stateSet* statSet=node->getOrCreateStateSet();
statSet->setMode(GL_LIGHTING, osg::stateAttribute::OFF);
statSet->setMode(GL_BLEND, osg::stateAttribute::ON);
statSet->setRenderingHint(osg::stateSet::TRANSPARENT_BIN);
osg::ref_ptr<osg::Material> material=new osg::Material;
material->setAlpha(osg::Material::face::FRONT_AND_BACK,0.5);
statSet->setAttribute(material.get());
....
.....
.......
Thank you!
Cheers,
Akilan
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=20859#20859
_______________________________________________
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