Hi Nick,

On 7 May 2014 20:48, Nick Modly <[email protected]> wrote:
> Is there a quick/convenient way to get the tex-coord for the vertex/drawable 
> returned from an intersection (i.e. the way that osgpick example returns the 
> vertex world and local coordinates)? Or do you have to compute the tex coord 
> yourself?


In osgUtil::LineSegmentIntersector::Intersection there is a Texture*
getTextureLookUp(Vec3& tc) method that works out which Texture and the
texture coordinate of the intersection point.  I don't recall how fat
back this method goes, but I've just checked OSG-3.2 and it's in
there.

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

Reply via email to