Re: [Virtools] 2D Picking and camera clipping planes

Subject: Re: [Virtools] 2D Picking and camera clipping planes
From: Patrick Hogenboom <p.hogenboom@xxxxxx>
Date: Thu, 12 Feb 2004 11:08:01 +0100
For testing stuff under the cursor, the 2D Picking bb is probably the best choice.
It gives you a lot of info.
If that isn't enough, you can always go for a 2-step approach.
_2D Picking bb -> intersection point
_Ray Intersection bb, from camera pos in the direction of the intersection point
where direction = [intersection point] - [camera pos]


CU, Patrick

P.S. if you want to clip the to the camera planes, these bb's both return the distance.
If that's bigger than the far clip distance, you've hit beyond the far clip plane.





On Wed, 28 Jan 2004 15:02:20 +0100, Klaus-J|rgen Quast <quast@xxxxxxxx> wrote:


the Ray Intersection BB does not take into account the near or far clipping planes of the active camera. Of course this should be the default as no user will try to interact with objects or faces of objects not visible.

Is there any workaround known to pick only faces of objects visible in the frustrum of an active perspective camera?

May be a solution is to use the Ray Intersection BB. But how to compute the Ray Origin and Ray Direction on the basis of a window relative mouse position vector (click point)?

Klaus




-- Patrick Hogenboom MCW Studio's To subscribe, go to http://lists.theswapmeet.com/virtools-user-group or e-mail: <mailto:virtools-user-group-subscribe@xxxxxxxxxxxxxxxxxxxxx> To post a message: send it to <mailto:virtools-user-group@xxxxxxxxxxxxxxxxxxxxx> To reply to the list and its author, use "Reply to All" --+--

Current Thread