Or you can use osg::HeightField ... much easier to use ..... have a look at osg::HeightField (osgshape.cpp example)
-Nick On Wed, Dec 8, 2010 at 5:48 AM, Trajce (Nick) Nikolov < [email protected]> wrote: > Hi, > > the same way you created your quad you can create many quads ( have a look > at osggeometry example ) or quad strip. Then run osgUtil::SmoothingVisitor > on your Geode to get nice normals. It should be enough for what you want to > do > > -Nick > > > On Wed, Dec 8, 2010 at 4:35 AM, Alden Peterson <[email protected]>wrote: > >> Hi, >> >> What I am trying to do is draw a large quad (purpose to use ground, using >> a high res google earth jpg). I have been doing this by specifying the end >> points of the square, and then putting the texture onto it. This works >> fine. >> >> However this results in only one lighting condition being applied to the >> entire square/ground. I would like to allow lighting to be variable across >> the surface - ie if I have a spotlight on the surface, the entire ground >> will light up in the same color instead of having a gradient across it (as >> if the ground was subdivided into many polygons with their own lighting >> calculations). >> >> It would seem there would be an easy way to get OSG to do this - but I do >> not know it. >> >> Any advice in this regard would be greatly appreciated! >> >> Thank you! >> >> Cheers, >> Alden >> >> ------------------ >> Read this topic online here: >> http://forum.openscenegraph.org/viewtopic.php?p=34596#34596 >> >> >> >> >> >> _______________________________________________ >> 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

