Re: Pick actions in Performer

New Message Reply Date view Thread view Subject view Author view

Fischler (src++at++rose)
Tue, 21 Mar 1995 13:43:19 -0800


+>---- On Mar 21, 3:44pm, bmcquear++at++dw3f.ess.harris.com wrote:
> Subject: Pick actions in Performer
->
->Hello,
->
->We are thinking of using Performer for an interactive simulation and
->would like to know if it is possible to "pick" an object in the render
->area. We are looking for something comparable to using SoRayPickAction
->in Open Inventor to cast a ray onto the scene and perform intersection
->tests with each object.
->
->Any ideas would be greatly appreciated.

Yes, the same type of picking is supported.
You do a pfNodePickSetup() on the part of the scene that you
want the picking traversal to consider (or the entire scene if you wish)
and do a pfChanPick() to set off the intersection, providing bitmasks
that specify the type of intersection information you want returned,
window-normalized mouse coordinates, and a pointer to hold the
return list of pfHits.

You can also look at the source for
        /usr/src/Performer/src/sample/apps/pickfly for
picking examples.

src.

-- 
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++
Sharon Rose Clay (Fischler) - Silicon Graphics, Advanced Graphics Dev.
src++at++sgi.com  (415) 390 - 1002  FAX: (415) 965 - 2658  MS 8U-590
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:06 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.