HI Sascha, The geometry lighting is controlled by the normals on the geometry, perhaps you haven't attached any. See the osggeometry example.
Robert On 1/19/07, Sascha Kuhn <[EMAIL PROTECTED]> wrote:
Thanks Paul. I have maybe one further question. I have a High grid replaced by a Geometry object of Triangles. The only difference is that the Geometry has no shade and the light is worse. What methods in OSG available to set this settings for Geometry objects? Thanks. Sascha -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Paul Martz Sent: Friday, January 19, 2007 10:49 AM To: 'osg users' Subject: RE: [osg-users] Attach to Geometry Geode has a getNumDrawables() method, and a getDrawable() method. Using these two methods, you need to iterate over the Drawables stored in your Geode. For each one, dynamic_cast it to a Geometry. Once you've done that, you can setColorArray() on the Geometry to replace the entire color array, or you can getColorArray() to get a reference to the existing color array and tweak individual colors within it. Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com 303 859 9466 > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Sascha Kuhn > Sent: Friday, January 19, 2007 11:40 AM > To: osg users > Subject: [osg-users] Attach to Geometry > > > Hi, > I have a method that finds Nodes in a tree. After I have > found the right node in my tree I want to change the > colorarray of my Geometry. > The Geometry object is subordinate to the Geode and Node. > > Can anybody help me? > > Thanks > Sascha > _______________________________________________ > osg-users mailing list > osg-users@openscenegraph.net > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ _______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/ _______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/