3d translation

New Message Reply Date view Thread view Subject view Author view

crakrjak++at++xerxesinc.com
Mon, 29 Jun 1998 17:51:48 -0400 (EDT)


i hope this is not off topic but my math is very poor..

i used

        shared->xpos += -100 * sin(shared->head) * cos(shared->pitch);
        shared->ypos += -100 * sin(shared->head) * cos(shared->pitch);
        shared->zpos += -100 * sin(shared->pitch) * sin(shared->head);

to specify the position of 100 behind the position where im at to set xpos
ypos and zpos. Is that right?

thanks, mike

ps: anybody has any good book to suggest on 3d maths?

=======================================================================
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:57:36 PDT

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