[osg-users] Bug with applying global default attributes?

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Sun Feb 2 12:53:27 PST 2020


I have determined that the problem is exercised if the first node sets the 
blend for FBO 1:

stateset->setAttribute(new osg::Enablei(GL_BLEND, 1));
osg::BlendEquationi* blendEq = new osg::BlendEquationi(1,
                                 osg::BlendEquation::RGBA_MAX);
osg::BlendFunci* blendFunc = new osg::BlendFunci(1,
                             osg::BlendFunci::ONE, osg::BlendFunci::ONE);
stateset->setAttributeAndModes(blendEq, osg::StateAttribute::ON);
stateset->setAttributeAndModes(blendFunc, osg::StateAttribute::ON);


Removing this prevents the FBO 0 blending problem on the second node.

Rob

On Sunday, February 2, 2020 at 9:22:22 AM UTC-8, Rob Spearman wrote:
>
> I can confirm the bug also exists on 3.6.5-rc3 branch.  I don't know if it 
> pre-existed that.
>
> I have too many dependencies to be able to share a model.  Simplistic 
> models do not seem to exhibit the same behavior.
>
> I'll keep trying to debug.  When is applyGlobalDefaultAttribute supposed 
> to be called?  What sets these defaults?
>
>

-- 
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/3526e168-887b-4b63-bdb4-e8687da4c861%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200202/fcd8a2f8/attachment.html>


More information about the osg-users mailing list