Results 1 to 4 of 4

Thread: Question about archsynthesis tutorial, Perspective Projection / Camera Perspective

  1. #1
    Newbie Newbie
    Join Date
    Jan 2015
    Posts
    2

    Question Question about archsynthesis tutorial, Perspective Projection / Camera Perspective

    Hi,

    This may seem like a trivial question, but I want to understand everything completely.

    In the section of the tutorial mentioned in the title, in the seventh paragraph, it says that "...the offset from the projection plane to the eye, is always -1". I don't understand why it is -1, instead of +1. Since we're talking about camera space, where Z grows (gets more positive) when coming closer to the viewer, shouldn't the offset be +1, that is, one unit closer to the viewer than where the plane is? I probably have something mixed up, but I'm not sure exactly what.

    I really enjoy the tutorial so far, so if the author reads this, thank you!

  2. #2
    Senior Member OpenGL Lord
    Join Date
    Mar 2015
    Posts
    6,678
    It says that camera space defines positive Z to be forward, which means towards the viewer. Therefore, negative Z is away from the viewer. So if you want the projection plane to be in front of the camera, it would have to be at a negative offset.

  3. #3
    Newbie Newbie
    Join Date
    Jan 2015
    Posts
    2
    Quote Originally Posted by Alfonse Reinheart View Post
    It says that camera space defines positive Z to be forward, which means towards the viewer. Therefore, negative Z is away from the viewer. So if you want the projection plane to be in front of the camera, it would have to be at a negative offset.
    Ah, I get it now, thanks!

    One more thing: I think I found a typo in Introduction / Vector Math / Equation 4 and 5: the components in the vector are named ax,az,az. If I'm not mistaken, that should be ax,ay,az.

  4. #4
    Senior Member OpenGL Lord
    Join Date
    Mar 2015
    Posts
    6,678
    Thanks, I'll fix those the next time it gets updated.

Similar Threads

  1. Can anyone help me with perspective projection?
    By HaplessHalfwit in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-07-2017, 12:33 PM
  2. Perspective projection
    By ukopenglnewbie in forum OpenGL: General
    Replies: 5
    Last Post: 01-30-2009, 02:52 PM
  3. Perspective Projection Question
    By gareththegeek in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 12-13-2007, 05:54 AM
  4. perspective projection
    By OGforever in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 12-03-2005, 06:42 AM
  5. perspective projection
    By rbalaji in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 06-16-2001, 08:38 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