The Mathematica Journal
Departments
Download This Issue
Home
Feature Articles
Graphics Gallery
Tricks of the Trade
In and Out
Columns
The Mathematica Programmer
New Products
New Publications
Classifieds
Calendar
News Bulletins
Editor's Pick
Mailbox
Letters
Write Us
About the Journal
Staff and Contributors
Submissions
Subscriptions
Advertising
Back Issues

The Animation

The water, aqueduct, and column are combined into one function named halfworks.

[Graphics:../Images/index_gr_75.gif]
[Graphics:../Images/index_gr_76.gif]

[Graphics:../Images/index_gr_77.gif]

One frame of the animation is shown by the function showwaterworks. To create showwaterworks, halfworks is reflected about the [Graphics:../Images/index_gr_78.gif] plane, translated in the [Graphics:../Images/index_gr_79.gif] direction, and combined with itself. Translation also occurs to keep the two waterways from physically overlapping. We will move the graphics along the line of sight since this does not affect the appearance in the image plane. It is this step that would not have been possible if the waterfall were apparently placed at the ends of the river.

[Graphics:../Images/index_gr_80.gif]
[Graphics:../Images/index_gr_81.gif]

[Graphics:../Images/index_gr_82.gif]

And finally, the function waterworks generates an animation with [Graphics:../Images/index_gr_83.gif] frames.

[Graphics:../Images/index_gr_84.gif]

Using 12 frames gives a smooth animation.

[Graphics:../Images/index_gr_85.gif]

WATERWORKS QT ANIMATION

An interesting animation can be set up which clearly shows the actual location of the graphics elements. The first scene shows the finished waterworks. The second scene rotates the first scene about the vertical axis, destroying the illusion. The third scene returns to the original viewpoint.

[Graphics:../Images/index_gr_99.gif]
[Graphics:../Images/index_gr_100.gif]

A list of viewpoints rotates the animation about the vertical axis.

[Graphics:../Images/index_gr_101.gif]
[Graphics:../Images/index_gr_102.gif]

The additional scenes are prepared by mapping the rotating viewpoints onto the original animation.

[Graphics:../Images/index_gr_103.gif]
[Graphics:../Images/index_gr_104.gif]

The three scenes are combined using the Join command and the frames are displayed by mapping Show onto the new list.

[Graphics:../Images/index_gr_105.gif]

WATERWORKS QT ANIMATION

Scene 1 can be set up (with the front end) as a sub-loop which repeats ten times to improve the effect.


Converted by Mathematica      September 24, 1999 [Prev Page][Next Page]