Graphics Programs Reference
In-Depth Information
There is one other test to be discussed. We want to make sure that the guard animation
occurs at the same time as the queen animation. The script below shows how this can
be done. If the scale factor for the queen is less than 150, the guard will be displayed
by the displayObj() function. If the scale factor is greater than or equal to 150, then
we will set the visibility of the guard to false.
107
108
109
110
// check if guard is visible for display
if (scene3D.Queen._xscale < 150) {displayObj(scene3D.Guard)}
else { scene3D.Guard._visible = false; }
Tip: Experiment with different viewer positions. For example, changing the y-value
from 100 to 50 creates the illusion that the viewer is lower to the ground, such as a
child might be.
Summary
Now that you have finished reading the chapter, you should be able to
• Create a simple camera translation
• Develop interactive navigation in 3D space
• Interact with information presented in a three-dimensional space
• Create movement that eases in or out using ActionScript
• Develop interactions that simulate viewer rotation around one of
the axes
• Understand how the background may or may not have to interact
with the objects in a scene
In the next chapter, we'll look at how we can apply some of the concepts we have
learned thus far to simulating QTVR effects.
Search WWH ::




Custom Search