"If users want AlphaFunc on by default for the opaque bin then they can simply attached an osg::AlphaFunc to the topmost StateSet in the scene graph and get back the old functionality."

Are we certain that this will work? I.e., that it will remain turned on in the course of the traversal etc? I have tried to the best of my knowledge but still see the visual artefacts. If my code is correct and this patch is indeed correct, then what I am seeing is caused by something else. Here is the current code I have:

   osg::AlphaFunc *TurnOnAlphaFuncbyDefault = new osg::AlphaFunc();
   osg::StateSet *NewStateSet = SceneGraphRoot->getOrCreateStateSet();
   TurnOnAlphaFuncbyDefault->setFunction(osg::AlphaFunc::GREATER,0.0f);
NewStateSet->setAttribute(TurnOnAlphaFuncbyDefault, osg::StateAttribute::ON);

Could you provide the exact code we need to revert back to the old behavior in case the above is still incorrect?

Thanks for your help

--
=====================================
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/

Reply via email to