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.

Chapter 13 Three-Dimensional Scenes 437<br />

Changing the View<br />

Figure 13.8 Rotating a Cylinder<br />

Note the use of the Update command at the end of the scene messages. This command tells JMP to make<br />

the displayed screen agree with the current state of the display list. It is important to clear the list at the<br />

beginning (so the list does not contain the old angles as well as the current) and update the scene after each<br />

change.<br />

The Look At Command<br />

The Look At command is an alternative way to set the camera view.<br />

Look At( eyeX, eyeY, eyeZ, centerX, centerY, centerZ, upX, upY, upZ )<br />

The Look At command puts the camera at the eye coordinates and points it toward the center<br />

coordinates. The up vector describes how the camera is rotated on its line of sight. Because the model is<br />

typically constructed at the origin, a JMP scene should have either a Look At or a Translate command<br />

near its beginning to move the camera away from the origin.<br />

First, clear the scene box of any commands from the previous frame.<br />

scene

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

Saved successfully!

Ooh no, something went wrong!