gltut icon indicating copy to clipboard operation
gltut copied to clipboard

Confused with Tutorial 4, Perspective Projection

Open paroj opened this issue 12 years ago • 3 comments

Originally reported by: Anonymous


Which is at (0, 0, 0) in camera space - the camera, or the center of the projection plane?

The tutorial says that "the location of the center of the perspective plane is fixed at (0, 0, -1) in camera space. Therefore, since the projection plane is pointing down the -Z axis, eye's location relative to the plane of projection is (0, 0, -1)." If the eye is pointing down the -Z axis and the eye is at (0, 0, 0), then shouldn't the eye's location relative to the projection plane be (0, 0, 1)?

Later, the tutorial says "The eye is fixed at (0, 0, -1)." What's the right position?


  • Bitbucket: https://bitbucket.org/alfonse/gltut/issue/101

paroj avatar May 21 '13 01:05 paroj

I'm also confused about this. In Figure 4.6, if Ē is (0, 0, 0) wouldn't Ez instead be Rz (-1). That is, z-component of R̄.

jicksaw avatar Mar 16 '19 17:03 jicksaw