Matrix

New Message Reply Date view Thread view Subject view Author view

Sonu Kansal (sonu++at++v3dmagic.com)
Wed, 17 Dec 1997 13:14:10 -0800


Thanks for everyone's help. Could someone point me in
a direction as to how to read in a Trans. Matrix from
a text file. Would I read it into a 2D array and then
set it to pfMatrix? I'm sorry if this question sounds
elementry, It's just that this is my first experiance
with Trans. Matrix.

what the *.txt file looks like:

1
    1.000000 0.000000 0.000000 0.000000
    0.000000 1.000000 0.000000 0.000000
    0.000000 0.000000 1.000000 0.000000
   23.513908 45.656635 -37.244858 1.000000
2
    1.000000 0.000000 0.000000 0.000000
    0.000000 1.000000 0.000000 0.000000
    0.000000 0.000000 1.000000 0.000000
   23.513908 45.656635 -37.244858 1.000000

So on a so forth.... where the initial # reps the
frame number -> 33.

Thanks,
Sonu Kansal
sonu++at++v3dmagic.com
=======================================================================
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:27 PDT

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