On 4/13/07, Marc Bernatchez <[EMAIL PROTECTED]> wrote:
"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

There are no guarentees, it depends entirely on whether the problem I
think your having to what is wrong, it could be something different.

.e., that it will remain turned on
in the course of the traversal etc?

It should be turned on.

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?

A full record of change is in SVN.  SceneView.cpp and RenderBin.cpp
are the parts that are relevant.

Robert.
_______________________________________________
osg-users mailing list
[EMAIL PROTECTED]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to