A model is reduced to a picture by systematic transformation through several coordinate systems. The lowest-level coordinate system included in this reduction is called Device Space - and it is closest to the hardware coordinate systems of the device itself. In these notes, we describe the device-space coordinate system.
For a pdf version of these notes look
here.
Device Space
Device space is usually defined to be the
array
of pixels that represent the area of the screen.
A coordinate system is imposed on this space by labeling the lower-left-hand
corner of the array as (0,0), with each pixel having unit length and
width. This is illustrated in the figure below.
Three of the pixels are shown in the figure. The lower-left corner of
the
th pixel is the coordinate
, the lower-right corner
is
, the upper-left corner is
, and the upper-right
corner is
.
An arbitrary point
in image space is converted to coordinates
in device space by converting the
coordinate to
To map any device-space point
into its
corresponding pixel is accomplished by taking the floor of each of the
coordinates
. Thus the pixels in device space
are all indexed by referring to their lower-left-hand corner.
Device Space with Depth Information
We can extend device space to three dimensions
by adding the
coordinate of
image space.
It is primarily used to obtain the device-space coordinate system for
use in the rendering algorithms (e.g., scanline, z-buffer, painters).
Device-space coordinates
have bounds
,
, with
arbitrary - where
and
are numbers of columns and rows
of the pixel array respectively.
Thepoint
in image space is converted to coordinates
in extended device space by converting the
coordinate from
as above, and adding the
coordinate. This gives
Return to
the Graphics Notes Home Page
Return
to the Geometric Modeling Notes Home Page
Return
to the UC Davis Visualization and Graphics Group Home Page
This document maintained by Ken Joy
All contents copyright (c) 1996, 1997, 1998,
1999
Computer Science Department
University of California, Davis
All rights reserved.