Re: Keeping current position

New Message Reply Date view Thread view Subject view Author view

Brian Furtaw (brian++at++sgi.com)
Thu, 2 Jan 1997 13:23:46 -0500


pfDCS's are absolute they do not accumulate matrix operations. Use a set of
pfMatrix instances to hold the current transform for each object then use
pfDCS::setMat(pfMatrix &) to load it into the proper DCS.

Brian

On Dec 31, 12:29pm, LIM MING WAH wrote:
> Subject: Keeping current position
>
> Hello all,
> 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 have added this to the keybd.c file:
>
> void toggleobject(int choice)
> {
>
> ViewState->sceneDCS = pointer[choice];
> initXformer();
>
> }
>
>
> ==========================================================================
> Jonathan
> Department of Mechanical and Production Engineering
> Faculty of Engineering
> National University of Singapore
> ==========================================================================
>
>
>
>
>
>
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-- End of excerpt from LIM MING WAH

-- 
o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o

Brian Furtaw (brian++at++sgi.com) VisSim Technical Consultant 12200-G Plum Orchard Drive Office: (301)572-3293 Fax: (301)872-3293 Silver Spring, Maryland 20904 OpenGL/ImageVision/OpenInventor/Performer ======================================================================= 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:16 PDT

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