Hi Mukund,

On Wed, Mar 2, 2011 at 7:16 PM, Mukund Keshav <[email protected]> wrote:
> Well, in my application/project, i would want to know the gradients at 
> places, ie how the terrain slope is varying. To do this, won't we need a 
> heightmap? from which we can calculate the varying gradient?

You won't need a height map at all :-)

The ray intersections that
osgUtil::InteresectionVisitor/osgUtil::LineSegmentIntersector provide
intersection information on the position and local normal of the
surface as well as the node path to the geometry leaf being
intersected.

Have a look at the osgintersection and osgpick examples.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to