Hi Robert, You'll need to get the texture coordinates from the intersection point and then look up the colour from the any osg::Image attached the osg::Texture's that are attached to the osg::StateSet associated with the intersection geometry.
Robert. On Thu, Aug 5, 2010 at 4:15 PM, Robert Youngren <[email protected]> wrote: > Hi, > > I've got a texture mapped geometry in a scene that I'm "shooting rays" at. > I'm using the osgUtil::IntersectVisitor::Hit structure to get at the drawable > that was intersected. What I really need is the color of the polygon at the > intersected point. I have the hit point location in world coordinates, the > normals, but now just need the RGB value of the texture hit. > > Thank you! > > Cheers, > Robert > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=30561#30561 > > > > > > _______________________________________________ > 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

