Skip to content

The explanation for projection is inconsistent #9

@saccharineboi

Description

@saccharineboi

In Implementing Cameras, the following is written:

The primary objective of perspective projection is to transform this trapezoidal frustum into a cuboid

Followed by:

This resulting cuboid exists in what we call Normalized Device Coordinates (NDC).

Then followed by:

Image

Even though:

Image

I think here you confused NDC and the clip coordinates (note the inconsistency in the last two images). The projection matrix doesn't output the vertex positions in NDC, instead it outputs them in homogeneous clip coordinates, which then through perspective-divide (i.e. divide by w) become coordinates in the NDC space. So it should be: LOCAL -> WORLD -> VIEW -> CLIP -> NDC -> VIEWPORT.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions