Re: Matrix Question

New Message Reply Date view Thread view Subject view Author view

Marko Srdanovic (mas++at++swl.msd.ray.com)
Tue, 09 Dec 1997 19:19:57 -0500


Sonu Kansal wrote:
>
> I'm trying to figure out how to read a
> Matrix generated by Nichiman Gfx: Can
> someone give me a direction or point me
> to a ref, page w/samples?
>
> the Matrix is in a file and looks like
> this:
>
> 1 // the frame #<1/33> then the 4x4 matrix below
> 1.00000 0.00000 0.00000 0.00000
> 0.00000 1.00000 0.00000 0.00000
> 0.00000 0.00000 1.00000 0.00000
> 23.51391 39.11468 -45.69330 1.00000
>

Straight out of Foley, van Dam, et.al.

  T(Dx, Dy, Dz) = [ 1 0 0 0 ]
                  [ 0 1 0 0 ]
                  [ 0 0 1 0 ]
                  [ Dx Dy Dz 1 ]

So you're looking at a translation matrix where:
   Dx = 23.51391
   Dy = 39.11468
   Dz = -45.69330

Foley, vam Dam is probably the most common text, Watt has a couple of
good books, but you should be able to find matrix definitions in just
about any graphics text.

http://mambo.ucsc.edu/psl/cg.html has tons of links to graphics related
stuff - I haven't checked, but I'll bet there are some good references
in there somewhere.

On the lighter side, people should check out
http://www.hp.com/mhm/CompGrfxFUNdamentals/CompGrfxFUNdamentals.html -
the site has some interesting "FUN"-damentals, as they say.

-- 
-----------------------------------------------------------------------
Marko Srdanovic                             mailto:mas++at++swl.msd.ray.com
Raytheon Electronic Systems                 voice: (978) 858-5680
Mailstop: T3MN35                            fax:   (978) 858-4336
50 Apple Hill Drive, Tewksbury, MA 01876    #include <std/disclaimer.h>
-----------------------------------------------------------------------
=======================================================================
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:21 PDT

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