Results 1 to 5 of 5

Thread: Perspective Projection Matrix Derivation

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2000
    Posts
    2

    Perspective Projection Matrix Derivation

    Hello,
    I'm trying to derive the OpenGL perspective projection matrix. The derivations I have found in several computer graphics books are inadequate (they do a few steps, then "a miracle happens), or they're just plain wrong (derivations do not match results).
    Can anyone assist?
    Thank you.

  2. #2
    Member Newbie
    Join Date
    Mar 2000
    Location
    UK
    Posts
    36

    Re: Perspective Projection Matrix Derivation

    The projection matrix that your after, is in the back of the red book. It looks a bit like this:

    {rn/(r-l), 0, (r+l)/(r-l), 0,
    0, 2n/(t-b), (t+b)/(t-b), 0,
    0, 0, -(f+n)/(f-n), -2fn/(f-n),
    0, 0, -1, 0}

    Not sure what any of the letters stand for though....

  3. #3
    Member Contributor
    Join Date
    Mar 2000
    Location
    Austin, TX USA
    Posts
    51

    Re: Perspective Projection Matrix Derivation

    FATBUDDHA -

    Did you mean to mess that up a bit? You kind of compounded the orthographic and perspective projection matricies.

    deeproot: check out the back of the redbook. It gives the projection matricies for orthographic and perspective projections, as well as their inverses

    J

  4. #4
    Junior Member Newbie
    Join Date
    Apr 2000
    Posts
    2

    Re: Perspective Projection Matrix Derivation

    thanks for the replies, but what i am looking for is the DERIVATION of the perspective matrix. in other words, all the steps that ultimately GENERATE the perspective matrix in the back of the red book. i already know what the perspective projection matrix is (memorized it, actually).
    **
    fatbuddha, the letters stand for the 6 planes that make up the viewing frustum: near, far, left, right, top, bottom.

  5. #5
    Member Contributor
    Join Date
    Mar 2000
    Location
    Austin, TX USA
    Posts
    51

    Re: Perspective Projection Matrix Derivation

    Have you looked at the Foley book, Computer Graphics priniples and practice? It appears to have a good derivation of the orthographic and perspective projection matricies, as well as a general projection matrix. I haven't worked through it, however(lots of scary numbers, fractions, etc).

    I think one thing that might be confusing, which I just figured out, is that the matricies in the back of the red book do perspective division as well. So they are not solely projection matricies as you would see in any graphics book. This is the biggest thing that confused me.

    J

Similar Threads

  1. So how does the perspective projection matrix works now in GL4?
    By mast4as in forum OpenGL: Basic Coding
    Replies: 20
    Last Post: 01-11-2015, 02:50 PM
  2. 3x3 perspective projection matrix
    By myk45 in forum OpenGL: Basic Coding
    Replies: 12
    Last Post: 09-19-2012, 06:21 AM
  3. about perspective projection matrix
    By zydgyy in forum OpenGL: General
    Replies: 3
    Last Post: 05-15-2012, 12:02 AM
  4. Can't understand perspective projection matrix
    By mesmerizingsnow in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-19-2012, 02:11 AM
  5. derivation of perspective matrices
    By megaspod in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 10-19-2000, 11:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean