Clipping Geometry Before Perspective Division

Clipping can restrict a primitive to the valid view region before projecting its points. A partially visible edge may need a new boundary vertex.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace one segment
  2. Check the near boundary

Trace one segment

One end lies within the viewing region and another outside. The retained segment can stop where it crosses the boundary. Segment intersection provides the related two-dimensional geometric idea.

Check the near boundary

A primitive reaching zero depth cannot simply undergo ordinary perspective division at every point. Apply a consistent clip convention. See perspective depth.[1]

References

  1. Matt Pharr, Wenzel Jakob and Greg Humphreys, Physically Based Rendering ↩