In the past I would simply write my own 'LineSegementIntersector' to return just a hit and simply use a node mask to just test against terrain nodes, just subclass or make a copy of the current 'LineSegementIntersector' and just later what it returns and data it collects etc
Gordon Tomlinson Product Manager 3d Technology & Project Wyvern Overwatch(r) An Operating Unit of Textron Systems __________________________________________________________ "WARNING: Documents that can be viewed, printed or retrieved from this E-Mail may contain technical data whose export is restricted by the Arms Export Control Act (Title 22, U.S.C., Sec 2751, et seq,) or the Export Administration Act of 1979, as amended, Title 50, U.S.C., App. 2401 et seq. and which may not be exported, released or disclosed to non-U.S. persons (i.e. persons who are not U.S. citizens or lawful permanent residents ["green card" holders]) inside or outside the United States, without first obtaining an export license. Violations of these export laws are subject to severe civil, criminal and administrative penalties." From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Tueller,Shayne R Civ USAF AFMC 519 SMXS/MXDEC Sent: Tuesday, August 24, 2010 1:13 PM To: OpenSceneGraph Users Subject: [osg-users] LineSegmentIntersector... All, I have a question about LineSegmentIntersector. Does it always return all intersections or does it have a feature that tells you whether or not you got a hit or not? I have a need to use something for terrain masking from a viewpoint to another location. In this case, all I want to know is if I hit terrain or not. I don't care about where the hit is or how many hits there are. It would certainly be more optimal to test for a single hit in this case rather than computing ALL intersections along a line of sight... Any feedback on this would be appreciated... Thanks, -Shayne
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org