Hi Marc,
You'll need to set the AlphaFunc's parameters. i.e.
osg::AlphaFunc* alphafunc = new osg::AlphaFunc;
alphafunc->setFunction(osg::AlphaFunc::GREATER,0.0f);
Robert.
On 4/12/07, Marc Bernatchez <[EMAIL PROTECTED]> wrote:
Hi Robert,
Here is what I tried in the code:
osg::AlphaFunc *TurnOnAlphaFuncbyDefault = new osg::AlphaFunc();
osg::StateSet *NewStateSet = SceneGraphRoot->getOrCreateStateSet();
NewStateSet->setAttribute(TurnOnAlphaFuncbyDefault,
osg::StateAttribute::ON);
I still see the artifacts. Does the code above make any sense or did
I've done it the wrong way?
I would second Tugkan's suggestion to revert back to the old code
behavior by default if the performance gain is marginal.
Thanks for the help Robert and others.
Marc
--
=====================================
Marc Bernatchez
Candidat au Ph.D.
Ecole Polytechnique de Montreal
Montreal, QC, CANADA
=====================================
Virtual Reality web site, VResources:
http://vresources.org
=====================================
_______________________________________________
osg-users mailing list
[EMAIL PROTECTED]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[EMAIL PROTECTED]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/