On 2/26/07, Robert Osfield <[EMAIL PROTECTED]> wrote:

On 2/25/07, Bruno Fanini <[EMAIL PROTECTED]> wrote:
> Hi Robert & others,
>
> It seems I spotted the problem!! it was that line:
>
> _mySceneView->setGlobalStateSet( my_global_stateset.get()
> );
>
> that casused rendering issues on Label sub-Node, changing it to:
>
> _myRootNode->setStateSet( my_global_stateset.get() );
>
> Worked!!!
>
> Now I'm wondering why setGlobalStateSet() in scene view caused all that
> pain....

Were you disabling blending using override?



No, Blending and Alpha test are both enabled in global stateset and in Label
geode:
->setMode(GL_ALPHA_TEST, osg::StateAttribute::ON );
->setMode(GL_BLEND, osg::StateAttribute::ON );

In the label geode stateset I just disable fog and lighting for a better
look of text lables.

What's the difference between setGlobalStateSet() in scene view and
setStateSet() in root node?
(just out of curiosity, btw now it works with 2nd solution)

--
Bruno
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to