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 8 of 8

Thread: Inverse Matrix

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2005
    Location
    England
    Posts
    16

    Inverse Matrix

    Hi, can anyone actually point out why, what and where the inverse matrix is used in openGL and why it is useful? thanks!
    ...People Who Say It Can't Be Done Are Passed By Those Who Are Doing It...

  2. #2
    Junior Member Regular Contributor
    Join Date
    Sep 2002
    Location
    Dresden, Sachsen, Germany
    Posts
    205

    Re: Inverse Matrix

    you can use the inverse matrix M^-1 of matrix M when you want the changes that M did want to be undone.

    If you want another answer then please specify your question

  3. #3
    Junior Member Newbie
    Join Date
    Aug 2005
    Location
    England
    Posts
    16

    Re: Inverse Matrix

    Ooh right thanks What about the determinant of a matrix, how is that useful in 3d graphics/games?
    ...People Who Say It Can't Be Done Are Passed By Those Who Are Doing It...

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,749

    Re: Inverse Matrix

    The determinant almost serves for calculating the inverse of a matrix.

  5. #5
    Advanced Member Frequent Contributor
    Join Date
    Feb 2004
    Location
    Long Island, New York
    Posts
    586

    Re: Inverse Matrix

    It is used to determine whether a polygon is backfacing.

  6. #6
    Junior Member Newbie
    Join Date
    Aug 2005
    Location
    England
    Posts
    16

    Re: Inverse Matrix

    could you possibly explain how? The thoery behind it? If it's too lengthy explanation it doesn't matter
    ...People Who Say It Can't Be Done Are Passed By Those Who Are Doing It...

  7. #7
    Advanced Member Frequent Contributor
    Join Date
    Feb 2004
    Location
    Long Island, New York
    Posts
    586

    Re: Inverse Matrix

    The explanation is a bit involved and it requires some knowledge of Linear Algebra.

    I won't get into all of that here but I can refer you to this
    should you care to read up on it.

  8. #8
    Junior Member Regular Contributor
    Join Date
    Jul 2005
    Location
    Berlin, Germany
    Posts
    188

    Re: Inverse Matrix

    The inverse transformation matrix is necessary for vertex normal transformation.

    The vertex itself is multiplied with the modelview-projection-matrix. Normals need to be multiplied with the inverse transpose of that matrix to stay correct.
    355/113 -- Not the famous irrational number PI, but an incredible simulation!

Posting Permissions

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