Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Matrix Multiplication

  1. #1
    Guest

    Matrix Multiplication

    Can anyone tell me what is the Matrix Multiplication of the below series call of function?

    LoadIdentity();
    glTranslatef(Tx, Ty, Tz);
    glRotatef(degree, 0, 0 , 1);

    Thanks....

  2. #2
    Intern Contributor
    Join Date
    Jan 2004
    Location
    Hoboken,NJ,USA
    Posts
    60

    Re: Matrix Multiplication

    You should try a glGetFloatV( ... )
    and get the matrix so you can look at it yourself.


    1 0 0 -Tx
    0 1 0 -Ty
    0 0 1 -Tz
    0 0 0 1

    and then the rotation is cosines and sines of x and y:

    cos(d) -sin(d) 0 0
    sin(d) cos(d) 0 0
    0 0 1 0
    0 0 0 1

    Multiply the two together for the result.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •