请输入您要查询的百科知识:

 

词条 Clip coordinates
释义

  1. Clipping algorithms

  2. External links

  3. References

The clip coordinate system is a homogeneous coordinate system in the graphics pipeline that is used for clipping.[1] In OpenGL, clip coordinates are positioned in the pipeline just after view coordinates and just before normalized device coordinates.[2]

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.[2][3] All coordinates may then be divided by the component (the fourth component in homogeneous coordinates , see below) in what is called the perspective division. This transformation puts the objects into normalized device coordinates.

More concretely, a point in clip coordinates is represented with four components,

and the following equality defines the relationship between the normalized device coordinates , and and clip coordinates,

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 for a point is within the viewing volume if it satisfies the inequality .[4] 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

{{wikibooks|Programming:OpenGL}}
  • Official OpenGL website

References

1. ^{{cite book|author1=Dave Shreiner|author2=OpenGL Architecture Review Board|title=OpenGL programming guide: the official guide to learning OpenGL, version 2|url=https://books.google.com/books?id=glIuQwAACAAJ|accessdate=29 December 2011|year=2006|publisher=Addison-Wesley|isbn=978-0-321-33573-9}}
2. ^{{cite web|url=https://www.khronos.org/registry/OpenGL/specs/gl/glspec46.core.pdf|title=OpenGL 4.6 Core Profile|date=May 14, 2018|first1=Mark|last1=Segal|first2=Kurt|last2=Akeley|publisher=The Khronos Group}}
3. ^{{cite web|url=https://www.khronos.org/registry/vulkan/specs/1.0/html/vkspec.html|title=Vulkan® 1.0.98 - A Specification|author=The Khronos® Vulkan Working Group|publisher=The Khronos Group|date=January 13, 2019|accessdate=January 23, 2019}}
4. ^{{cite web|url=https://www.khronos.org/opengl/wiki/Vertex_Post-Processing|title=Vertex Post-Processing|publisher=The Khronos Group|accessdate=January 23, 2019}}
{{DEFAULTSORT:Clip Coordinates}}{{Compu-graphics-stub}}

1 : Clipping (computer graphics)

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/22 6:49:19