Re: Picking an object

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++multipass.engr.sgi.com)
Mon, 19 Jan 1998 18:17:52 -0800


On Jan 17, 10:49am, Anda Singer wrote:
> Subject: Picking an object
> Hi all,
>
> Based on the pick.c example - I wrote a program that loads an
> object and then it duplicates it by using pfClone().
> Each object has a name. Both objects appear fine in the scene.
>
> Then I use the pick program to select an object.
> After the pick I try to recognize which object was picked by going up the
> Performer tree, but this way I get to the same base Node (the same name).
>
> Can I recognize which object was picked using pfClone? How?

You can request that the intersection routine returns the path
to the picked object, this should provide you with enough information to
determine which 'instance' of your duplicated graph has been picked.

Cheers,Angus.

-- 
  "The Revolution 3D can be thought of as a chariot being pulled by three
powerful horses, each representing 3-D, 2-D and MPEG acceleration. While
many competing technologies may offer three horse chariots, often only
one of the three horses is fast" - industry analyst Richard Doherty,
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

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:56:35 PDT

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