0% found this document useful (0 votes)
12 views

Documents

There are some computer graphics documents attached here.

Uploaded by

Marshia Mohana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
12 views

Documents

There are some computer graphics documents attached here.

Uploaded by

Marshia Mohana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 34
Chapter Ten Hidden Surfaces Opaque objects that are closer to the eye and in the line of sight of other objects will block those cies oF portions of those objects from view. In fact, some surfaces of these opaque objects themselves are not visible because they are eclipsed by the objects’ visible parts. The surfaces that ae blocked ot hidden from view must be “removed” in order to construct a realistic view of the 3D scene (see Fig, 1.3 where only three of the six faces of the cube are shown). The identification and removal of these surfaces is called the hidden-surface problem. The solution involves the determination of the closest visible surface along each projection line (Section 10.1). There are many different hidden-surface algorithms. Each can be characterized as either an image-space method, in which the pixel grid is used to guide the computational activities that determine visibility at the pixel level (Sections 10.2, 10.5 and 10.6), or an object-space method, in which surface visibility is determined using continuous models in the object space (or its transformation) without involving pixel-based operations (Sections 10.3 and 10.4), Notice that the hidden-surface problem has tis to the calculation of shadows. If we place a light source, such as a bulb, at the viewpoint, all surfaces that are vi Je from the viewpoint are lit directly by the light source and all surfaces that are hidden from the viewpoint are in the shadow of some opaque objects blocking the light, 10.1 DEPTH COMPARISONS We assume that all coordinates (x, Ys z) are described in the normalized viewing coordinate system (Chapter 8). . : Any hidden-surface algorithm must determine which edges and surfaces are visible either from the center of projection for perspective projections or along the direction of projection for parallel projections. Computer Graphics 256 The question of visibility reduces to this: given two points Py (1, Yi» 2) and Po (xp, 92, 2s dogs cither point obscure the other? This is answered in wo steps: jection line? aunt ites srrat obscures the other. IF so, depth comparison tll Us which pons front of the other For an orthographic parallel projection onto the xy plane, P; and Py are on the same Projector ig sy = sya; = Yo In this ease, depth comparison reduces to comparing 2, and zy the normalized perspective to parallel transform preserves lines, planes, and 42>! e) y ts! Hidden Surfaces a] Parallel projection of this configuration is [ABCDEFG) Perspective projection of this configuration is. > [ABCDEFG) % y ree 1 Fig. 10.2 IF our display device has display coordinates H x V, application of the scaling matrix ( H00O0 fs 0vo0o0 wvi=lo 9-10 ooo01 < 1 onto the region 0 $x H, transforms the normalized display space 0 Sx <1,0SyS1,0Sz lay transform DT,: O

You might also like