[osg-users] possible (probable) state leakage in the master

Trajce Nikolov NICK trajce.nikolov.nick at gmail.com
Mon Nov 19 05:15:15 PST 2018

Hi Robert,

I was experiencing this the last month or a two with the master without
making noise about but it seam it is a real problem. I was under lazy
impression that maybe my implementation wsa wrong but now with very simple
case I can reproduce it:

I have two files, one simple geometry as ive with colors per vertex, and
other file as obj without any materials. The colors from the first file are
somehow getting it thru to the other model by simply osgviewer file1 file2.

In previous facing of this behavior, I was having shaders in the scene
where I wanted parts to be rendered by shaders, parts by ffp, in a
scenegraph like this: root->child1 with shader, root->child2 ffp. After
updating (was really about two months ago) to 3.6.3 if I can recall (or
even now with the master) I had to explicitly disable the shader from
child1 to not be applied to child2 by setting it an empty Program(
setModeEtc...(new osg::Program) ).

If you are not in rush and have some time I can send you the files I have
here that reproduce the problem (not for public), just ping me.

XUbuntu 16.04
Windows 10
osg 3.7.0

Thanks a bunch as always!
Cheers, Nick

trajce nikolov nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20181119/af0b5c53/attachment.html>

More information about the osg-users mailing list