Re: Keeping current position

New Message Reply Date view Thread view Subject view Author view

Edward Peters (elpeters++at++ncsa.uiuc.edu)
Tue, 31 Dec 1996 10:08:10 -0600


> I have recently tried to load many objects (up to 5) to perfly by
> distributing them to different DCSs. Then I modified the keybd.c to take
> in numbers from 1 to 5 and this toggles through the objects to be moved.
> The problem I face is that whenever I toggle back to an object whcih I
> have moved previously, it altomatically resets to its initial position.
> Is there any way which I can preserve their most recent position when I
> call up the object?

I'm not sure I understand the question entirely, but the pfSwitch node might
provide the functionality you're looking for. If you build something like
this:

                pfDCS
|
              pfSwitch
             / | \
           obj1 obj2 obj3 ... and so on

Then you make modifications to the pfDCS and switch geometry using
        mySwitch->setVal(int which)
Whichever geometry you use, it will appear at the point specified by the DCS.

Happy Performing.

Ed Peters
elpeters++at++ncsa.uiuc.edu
=======================================================================
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:54:12 PDT

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