clip coordinates

Uses your system voice; voice and rate in settings.

Q5134348Snapshot

≈ 3 min read

Names in other languages

  • Englishclip coordinates

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

The clip coordinate system is a homogeneous coordinate system in the graphics pipeline that is used for clipping. Objects' coordinates are transformed via a projection transformation into clip coordinates, at which point it may be efficiently determined on an object-by-object basis which portions of the objects will be visible to the user. In the context of OpenGL or Vulkan, the result of executing vertex processing shaders is considered to be in clip coordinates. All coordinates may then be divided by the w component of 3D homogeneous coordinates, in what is called the perspective division. More concretely, a point in clip coordinates is represented with four components, : \begin{pmatrix}x_c\\y_c\\z_c\\w_c\end{pmatrix}, and the following equality defines the relationship between the normalized device coordinates x_n , y_n and z_n and clip coordinates, : \begin{pmatrix}x_n\\y_n\\z_n\end{pmatrix} = \begin{pmatrix}x_c / w_c\\y_c / w_c\\z_c / w_c\end{pmatrix}. Clip coordinates are convenient for clipping algorithms as points can be checked if their coordinates are outside of the viewing volume. For example, a coordinate x_c for a point is within the viewing volume if it satisfies the inequality -w_c \leq x_c \leq w_c . Polygons with vertices outside of the viewing volume may be clipped to fit within the volume.

The clip coordinate system is a homogeneous coordinate system in the graphics pipeline that is used for clipping. Objects' coordinates are transformed via a projection transformation into clip coordinates, at which point it may be efficiently determined on an object-by-object basis which portions of the objects will be visible to the user. In the context of OpenGL or Vulkan, the result of executing vertex processing shaders is considered to be in clip coordinates. All coordinates may then be divided by the w component of 3D homogeneous coordinates, in what is called the perspective division. More concretely, a point in clip coordinates is represented with four components, \begin{pmatrix}x_c\\y_c\\z_c\\w_c\end{pmatrix}, and the following equality defines the relationship between the normalized device coordinates x_n , y_n and z_n and clip coordinates, \begin{pmatrix}x_n\\y_n\\z_n\end{pmatrix} = \begin{pmatrix}x_c / w_c\\y_c / w_c\\z_c / w_c\end{pmatrix}. Clip coordinates are convenient for clipping algorithms as points can be checked if their coordinates are outside of the viewing volume. For example, a coordinate x_c for a point is within the viewing volume if it satisfies the inequality -w_c \leq x_c \leq w_c . Polygons with vertices outside of the viewing volume may be clipped to fit within the volume.

Clipping algorithms

Newman–Sproull * Cyrus–Beck Sutherland–Hodgman algorithm

External links

Official OpenGL website

References

Text derived from https://en.wikipedia.org/w/index.php?oldid=1189680895 under CC BY-SA 4.0; modifications have been made.

Provenance

snapshot clip-coordinates-585083-4de72cbaf45e8dc8 · hash 4de72cbaf45e8dc8bfdeb563fb8c149ef58951dc1a7b1e659958b7551b25c0d1 · captured 1702456152.0 · version history

Cite this page as: encyclopegia.org, “clip coordinates”, snapshot clip-coordinates-585083-4de72cbaf45e8dc8. https://encyclopegia.org/a/clip-coordinates

Sources cited in this revision

No external citation was extracted for this revision. That is a statement about the source, not a claim that none exists.