Our eyes can be tricked into seeing three-dimensional
perspective even when there is none by the careful
scaling
and
placement
of objects on a two-dimensional screen. All
the effects in this chapter have used the same few principles that
filmmakers have been using and perfecting for over a hundred
We rounded off the chapter by introducing a powerful way of
creating scripted animations using a class from the Moose
ActionScript Library. In the
If you want to take these techniques further, you'll be
interested to hear that we've produced a bonus chapter on
interactive scaling. You can download this chapter
After so much work with perspective in the scaling chapter, it may seem odd that in this chapter we're going to abandon perspective entirely. That's right, we're going to explore 3D without perspective. If you've grown up in a Western country, you may be thinking that the previous
As we mentioned in the earlier chapter on scaling, what we commonly call perspective (more precisely,
linear perspective
) is not a natural
Jan krikke, in his
excellent onlineessay "A Chinese Perspective for Cyberspace?" gives a wonderful example of such a scroll depicting life along a river: "Upon unrolling the opening sequence of the scroll, we may see people boarding a boat on a river. As we unroll the scroll further, we see the boat cross a lake, navigate rapids in theriver , stop at a small harbour, and lastlyarrive at its destination on the seashore. In other words, the scroll has taken the viewer through an experience in space and time." ( http://iias.leidenuniv.nl/iiasn/iiasn9/eastasia/krikke.html )
Instead of using vanishing points and relying on optical principles that would break the continuity of the story, the Chinese kept all lines along their "z-axis" parallel. In doing this, they developed
axonometric projection.
The
{% if main.adsdop %}{% include 'adsenceinline.tpl' %}{% endif %}Thiadmer Riemersma has written the definitive introduction to axonometric projections. You can read his whole paper at www.compuphase.com/axometr.htm .
Isometric projection is one specific application of axonometric projection. If you break down the word isometric, you get iso , which means equal, and metric. This comes from the fact that if you were to draw a cube in an isometric universe, all of its sides would be the same length. Compare this to a cube drawn in linear perspective in the diagram below. Note how, as you travel from the front face to the back face of the cube with linear perspective, the diagonal lines converge and are foreshortened. However, as you can see below, all lines along the z-axis in an isometric projection are parallel. There is no foreshortening of diagonal lines and, if you know the angle of the projection used, you can calculate the actual length of a line by measuring it off the image and applying the correct calculation to it:
As mentioned earlier, isometric 3D refers to an axonometric projection where unit distances on the x-, y-, and z-axes are equal. There can also be different types of isometric projections, depending on the angle made between the z- and x-axes of the isometric world and the x-axis of the 2D Cartesian plane. The latter corresponds to the stage coordinates of Flash.
Camillo Trevisan has an amazing freeware program called Cartesio that you can download from www.iuav.it/dpa/ricerche/trevisan/intern02.htm to see the difference between many types of axonometric, isometric, and other types of projections.
The most common type of isometric projection uses a 30 angle. This angle of projection, first publicized by William Farish in 1822, is used extensively for architectural and technical drawings due to the fact that it is very easy to do calculations on it (since
sin
30 = 0.5). However, another common version of isometric projection,
We're going to kick off this chapter with a look at the simplest type of parallel projection you can create in Flash: the 45 projection. It's especially easy to draw using this angle because Flash's Line Tool, when constrained using the SHIFT key, automatically