Hi, 9Volt

Solution that you can use actually depends of do you care about processing 
speed or it is not that important. If speed is not concern then your approach 
must be good enough.

You can actually try to use occlusion queries for that purpose, though you'll 
need to generate drawables that draw one point with fixed one pixel size in 
each point you need to be tested, wrap them under occlusion query node, and 
check test results. Keep in mind that in osg occlusion query uses depth buffer 
from previous frame to test visibility in current frame, so you'll need 2 
frames on one camera position to get right results (which is ones that you get 
on second frame, obviously). This approach should be easy to implement and it 
must be much faster than intersections search.

Thank you!

Cheers,
Sergey

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=35769#35769





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

Reply via email to