- Source: Clip coordinates
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
{\displaystyle 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,
(
x
c
y
c
z
c
w
c
)
,
{\displaystyle {\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
{\displaystyle x_{n}}
,
y
n
{\displaystyle y_{n}}
and
z
n
{\displaystyle z_{n}}
and clip coordinates,
(
x
n
y
n
z
n
)
=
(
x
c
/
w
c
y
c
/
w
c
z
c
/
w
c
)
.
{\displaystyle {\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
{\displaystyle x_{c}}
for a point is within the viewing volume if it satisfies the inequality
−
w
c
≤
x
c
≤
w
c
{\displaystyle -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 Archived 2011-02-26 at the Wayback Machine
References
Kata Kunci Pencarian:
- Merkurius
- Curaçao
- Mill Valley, California
- Clip coordinates
- Clipping (computer graphics)
- Line clipping
- Operation Plumbbob
- Military Grid Reference System
- Red Paper Clip
- Clip, Arizona
- Poly-clip System
- Auckland Harbour Bridge
- January 6 United States Capitol attack