An animation in JavaView is like an interactive movie. A geometry (or even a whole scene) is evolving in time. While watching the process the user can still (unlike in a movie) interact with the display, e.g. change the position of the camera or the view direction. This tutorial gives an example of an animation in JavaView and explains how to control them.

Subsection: Example

A typical example of an animation is a dynamic surface. The example on the right shows a catenoid transforming into a helicoid. The mathematical background here is that the catenoid and the helicoid are conjugate minimal surfaces. During the whole transformation the surface stays a minimal surface. The set of all these surfaces is called the associated family of the catenoid (resp. the helicoid). The transformation has beautiful mathematical properties, e.g. the normals at each point of the surface do not change.

The formula for the transformation is:

x(u,v,t) = cos(t)sinh(v)sin(u)+sin(t)cosh(v)cos(u)
y(u,v,t) = cos(t)sinh(v)cos(u)+sin(t)cosh(v)sin(u)
z(u,v,t) = u cos(t)+v sin(t)

where the parameter t goes from 0 to Pi/2 with t=0 being the helicoid and t=Pi/2 representing the catenoid.

The catenoid - a minimal surface.

The helicoid is the conjugate minimal surface of the catenoid.

Subsection: Animation Panel

Now lets take a look at the animation panel.
You can open the animation panel by focussing the mouse over the display and pressing CTRL-a or via the main menu through Window --> Animation.
The first control is a slider and an input Time, where you can select individual timeframes of the transformation. In this example values from 0 to 720 are valid, which correspond to two full transformations from the catenoid to the helicoid and back. Next are three radio boxes, with which you can control the behavior on ending of the animation.
The first radio box One Way ends the animation after one pass, the second Loop loops through the animation meaning after completing one pass it jumps back to the start and runs again. Finally the third option named Back/Forth runs backward after one pass to the beginning and continues from there on. The last button Close closes the window and keeps the animation in the state in which it is at the moment, e.g. running in a loop.

Subsection: Summary

Opening animation panel In the main menu Window --> Animation or press CTRL-a
Slider/Textfield Time Sets the current time of the animation, values between 0 and 720
Choice One Way Animation will stop after one pass at the maximum time
Choice Loop Animation will be reset at the maximum time and continued from the beginning
Choice Back/Forth Animation will run backward at the maximum time to the start and so on
Button Rewind Animation runs backward at faster speed
Button Start Starts the animation at regular speed
Button Stop Stops the animation
Button Forward Animation runs forward at faster speed
Button Close Closes the animation panel

© 1997-2017 Last modified: 22.06.2017 --- www.javaview.de --- The JavaView Project