Is there a fast, existing object in OSG that allows picking which
ignores pixels that are completely translucent (or perhaps have an alpha
value lower than some threshold?) I'm using the osgpick example as my
reference, and the LineSegmentIntersector class does indeed have a
number of interesting features. However, I didn't see any convenience
methods for getting the color of the currently active coord. In fact,
that might be totally outside the scope of the Intersector in the first
place.

I tried searching the archives, but perhaps I'm not using the right
search terms. I'm almost certain something like this is a "solved" issue
with a very good answer, but so far I'm not able to find anything.

(I had the idea of using Fragment Shader, but it really seems like
overkill. My suspicion is that the answer will involve taking the
coordinate values from the intersector, grabbing the closest pixel from
the buffer using those coords, and testing that--I'm just not sure how
easy/fast it is to do that...)

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to