user1697973
user1697973

Reputation:

3D graphics pipeline

That's what I understand about graphic pipeline (Opengl) so far, can someone confirm that?

I've read that eye space reverses the Z axis, so, an original +z vertex turns backward from eye, why?

Upvotes: 0

Views: 503

Answers (1)

datenwolf
datenwolf

Reputation: 162164

Nope. There are

  • Local Space

→ Modelview Transform →

  • Eye Space

→ Projection Transform →

  • Clip Space

→ Homogenous Coordinate w-normalization →

  • Normalized Coordinate Space

The modelview and projection transform are usually expressed by a matrix multiplication. There are no special requirements on the matrices used, but you normally want them to be non-singular. But between that anything goes. The usually found transformations are rotation-scalings + translation and shear-scalings + translation.

I've read that eye space reverses the Z axis, so, an original +z vertex turns backward from eye, why?

No, not really. I think you may maean negative z and w elements in the projection matrix. But that's only to get the depth ordering right. You could flip the sign of them just fine and reverse that effect by making certain adjustments to the depth range and depth test function. The negative sign there is just conventional to obtain a right-handed coordinate system with default settings, i.e. positive Z eye space coordinates come out of the screen.

Upvotes: 3

Related Questions