[osg-users] Bug with applying global default attributes?
OpenSceneGraph Users
osg-users at lists.openscenegraph.org
Wed Jan 29 10:22:15 PST 2020
I have been testing with trunk and have only come across one problem so
far (this might not be a new issue).
I have a simple viewer set up with two nodes. The first is loaded from
an osgb. Internally it sets the glBlendFunci(0, GL_MAX) via
osg::BlendFunci.
The second node also sets glBlendFunci(0, GL_MAX). This is a geode with
a geometry node under it. I am setting the blend attributes on the
geometry state set.
At runtime the attribute on node two is set correctly but then
immediately changed again by State::ApplyGlobalDefaultAttribute to
GL_FUNC_ADD. The blend equation is also stepped on in a similar way. I
am using apitrace to see the GL calls.
GL_FUNC_ADD is not part of either node that I can see. However, this
problem does not occur with, for example, axes.osgt used as node one.
I could use some advice on tracking down where this default value is
coming from, and why it is overriding a specific node attribute like this.
Thanks,
Rob
More information about the osg-users
mailing list