14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

434 Three-Dimensional Scenes Chapter 13<br />

Setting the Viewing Space<br />

This defines a 45 degree viewing angle, with a near plane 3 units from the viewer and a far plane 7 units<br />

from the viewer.<br />

The viewing angle functions in the same way as a wide angle or telephoto lens on a camera. Small viewing<br />

angles zoom into a drawing, while wide angles zoom out. In other words, a small viewing angle maps the<br />

screen space onto a small portion of the scene, resulting in apparently larger scene elements. A large viewing<br />

angle maps the screen space onto a large portion of the scene, resulting in apparently small screen elements.<br />

The size of scene elements can therefore be manipulated using the angle parameter of the Perspective<br />

function. The picture here shows the hello world script with perspective angles of 45 and 90 degrees.<br />

Figure 13.6 Changing the Perspective<br />

scene

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

Saved successfully!

Ooh no, something went wrong!