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

Reply via email to