14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

432 Three-Dimensional Scenes Chapter 13<br />

Setting the Viewing Space<br />

Setting the Viewing Space<br />

3-D scenes can be rendered in two ways. Orthographic projections place the elements in a box, where<br />

coordinates are not changed to accommodate the perspective of the viewer. Perspective projections modify<br />

the display to simulate the position of the elements in relation to the position of the viewer. For example,<br />

two parallel lines (like railroad tracks) stay parallel in orthographic projections, but seem to connect at a<br />

distance in perspective projections.<br />

Figure 13.4 Parallel Lines in an Orthographic Projection(left) and a Perspective Projection (right)<br />

As another example, imagine looking at a tube edge-on (like a telescope). In an orthographic projection, the<br />

tube would appear as a thin circle. In a perspective projection, the circle would have a thickness; the hole at<br />

the far end of the tube would appear smaller than the close hole, and the interior of the tube is visible.<br />

Therefore, the viewable space of an orthographic projection is a rectangular shape, while that of a<br />

perspective projection is the frustum of a pyramid (that is, a pyramid whose top has been sliced off).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!