Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Viewport

From Wikipedia, the free encyclopedia
Polygon viewing region in computer graphics

Aviewport is a polygon viewing region incomputer graphics.

Incomputer graphics theory, there are two region-like notions of relevance when rendering some objects to an image. In textbook terminology, theworld coordinate window is the area of interest (meaning what the user wants to visualize) in some application-specific coordinates, e.g. miles, centimeters etc.

The wordwindow as used here should not be confused with theGUI window, i.e. the notion used inwindow managers.[1] Rather it is an analogy with how awindow limits what one can see outside a room.[2]

In contrast, theviewport is an area (typically rectangular) expressed in rendering-device-specific coordinates, e.g. pixels for screen coordinates, in which the objects of interest are going to be rendered.Clipping to the world-coordinates window is usually applied to the objects before they are passed through the window-to-viewport transformation. For a 2D object, the latter transformation is simply a combination oftranslation andscaling, the latter not necessarily uniform.[1] An analogy of this transformation process based on traditionalphotography notions is to equate the world-clipping window with the camera settings and the variously sized prints that can be obtained from the resulting film image as possible viewports.[2]

Because the physical-device-based coordinates may not be portable from one device to another, a softwareabstraction layer known asnormalized device coordinates is typically introduced for expressing viewports; it appears for example in theGraphical Kernel System (GKS) and later systems inspired from it.[3]

In3D computer graphics, the viewport refers to the 2D rectangle used to project the 3D scene to the position of avirtual camera. A viewport is a region of the screen used to display a portion of the total image to be shown.[4]

Invirtual desktops, the viewport is the visible portion of a 2D area which is larger than the visualization device.

When viewing a document in aweb browser, the viewport is the region of the browser window which contains the visible portion of the document. If the size of the viewport changes, for example as a result of the user resizing the browser window, then the browser may reflow the document (recalculate the locations and sizes of elements of the document). If the document is larger than the viewport, the user can control the portion of the document which is visible byscrolling in the viewport.[5]

See also

[edit]

References

[edit]
  1. ^abJames D. Foley,Andries van Dam,Steven K. Feiner,John F. Hughes (1996).Computer Graphics: Principles and Practice (2nd ed.). Addison-Wesley Professional. pp. 210–212.ISBN 978-0-201-84840-3.{{cite book}}: CS1 maint: multiple names: authors list (link)
  2. ^abJeffrey J. McConnell (2006).Computer Graphics: Theory Into Practice. Jones & Bartlett Learning. pp. 12–13.ISBN 978-0-7637-2250-0.
  3. ^John Black (1992).The System Engineers Handbook. Elsevier. pp. 190–193.ISBN 978-0-08-051902-9.
  4. ^http://msdn.microsoft.com/en-us/library/ff634571.aspx Microsoft - What Is a Viewport?
  5. ^W3C (2011-07-07)."Visual formatting model - 9.1.1 The Viewport". Retrieved2012-02-14.{{cite web}}: CS1 maint: numeric names: authors list (link)

External links

[edit]
Retrieved from "https://en.wikipedia.org/w/index.php?title=Viewport&oldid=1305160963"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp