Thank you Robert - I didn't want to reinvent the wheel if someone had done this already.
When I get something working, I'll post it here.
I'm afriad there isn't an example of how to do this. It is possible and some users have implemented it in the past. Hopefully they spot your post and volunteer some code... The basic principle will be that using a ray intersection find the triangle hit, and from this get the tex coordinates for this hit point. Then find the current textures that will be attached/ihnerited down to this hit drawable, get the image from the texture, then compute the tex coord offset into the image and get and decode the pixel. Its certainly a nice exercise to leave the reader, I'm afriad I'm waaay to busy to do fine grained help on this one.
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
