[osg-users] Dragger::setupDefaultGeometry changes lighting

2012-01-13 Thread Philipp Moeller
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 /\ / \ /

Re: [osg-users] Dragger::setupDefaultGeometry changes lighting

2012-01-13 Thread Robert Osfield
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 philipp.moel...@geometryfactory.com wrote: I want to add a

Re: [osg-users] Dragger::setupDefaultGeometry changes lighting

2012-01-13 Thread Philipp Moeller
Robert Osfield robert.osfi...@gmail.com writes: 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. Indeed my normals were missing. I had an updateCallback set on my