[osg-users] setAttribute / Material issue
Robert Osfield
robert.osfield at gmail.com
Thu Aug 17 03:33:57 PDT 2017
Hi Paul,
Typically when we see inconsistent colouring/lighting in a scene it's due
to missing vertex colour or normals on osg::Gemetry leaves in the scene
graph, with the shaders or fixed function pipeline relying upon there state
for rendering. These missing values will be filled in by any previous
osg:Geometry that happens to set them, but as the ordering can change from
frame to frame/changes in view direction we see flickering between various
possible accidentally inherited settings.
Have a look at your subgraphs to make sure they all set their vertex arrays
correctly.
Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170817/33c88d80/attachment.htm>
More information about the osg-users
mailing list