Hi Enrico,
On Thu, 2004-09-09 at 03:38, Enrico Borrione wrote:
> hi all,
> i am trying to determine what point of my geo is closest to the camera.
> I need to compare only the distance of visible vertices, which means
> those who are include in the camera Field Of View.
> Is there in OSG afast way of determining whether a point is in the FOV
> or behind the camera?
yup. You need the Camera and the Viewport that you're interested in. The
Camera can give you the current viewing frustum
(Camera::getFrustum(FrustumVolume& result, const Viewport& p), and that
being a Volume, you can test points for inclusion
(Volume::intersect(const Pnt3f &p)).
Hope it helps
Dirk
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users