Hi Philip, Check your geometry to see if it has normal and colour arrays, it could be that these are missing so it's inheriting the values from the manipulator geometry.
Robert. On 13 January 2012 11:21, Philipp Moeller <[email protected]> wrote: > I want to add a TrackballDragger to a simple geometry (triangles, > normals calculated by SmoothingVisitor, colors, no other state set). My > viewer is configured with setLightingMode(osg::View::SKY_LIGHT). And my > graph looks really just like this: > > root > / \ > / \ > / MatrixTransform > / \ > Dragger \ > Geometry > > Dragging works perfectly but the lighting for the Geometry changes (goes > dark) and even setting GL_LIGHTING to ON | PROTECTED does not change > anything. > > The change is introduced by TrackballDragger::setupDefaultGeometry but I > cannot see where the code should set a StateAttribute that would affect > lighting in my geometry. > > Any hints how to debug this further or which StateAttributes need to be > enabled in my geometry? > > Cheers, > Philipp Moeller > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

