logo
Overview  First Applet  First Application   First Graph  First Project  Models  Loader  Keyframe  Linear Alg  Torus Knot  Picking  Camera Events  Color Selector  Slider  Ruler  Vector Field  Polygon Sets  Scalar Field   ODE  Root Finder  Parm Curve  Parm Surface  L-System  Texture  Refinement  4D Transform  Size Vertex  Size Polygon  Size Edge 

Keyframe Animation of Wente Torus

Applet demonstrates the loading of keyframe animations and the keyframe panel inside the animation panel. Use panel to start/stop transformation.

This applet displays an animated sequence of geometries. There must exist a number of, say n, geometry files which are sequentially numbered like geom.1.byu, geom.2.byu, ..., geom.n.byu. The word 'geom' is any base name. When JavaView read this sequence then it display a continuous animation by interpolating between the geometries of adjacent keyframes.

Here is the applet which generates the shown animation on this pages:

<applet code="vgp.tutor.key.PaKeyframe.class"
   width="300" height="300" codebase="../../../"
   archive="jars/javaview.jar,jars/jvx.jar,jars/vgpapp.jar">
   <param name="Model" value="models/cmc/Wente_Anim.*.byu">
   <param name="Number" value="2">
   <param name="Animation" value="Show">
</applet>

The parameters have the following meaning:

Model Name of geometry files with relative path w.r.t. the code base where the running number is replaced with the character *.
Number Number of geometry files. Counting starts at 1.
Animation Show or Hide the animation control panel when applet is started..

For usage of the animation control panel see Animation Panel description.

View source code:
PaKeyframe.java of applet,
PjKeyframe.java of project,
PjKeyframe_IP.java of project panel.
© 1997-2017 Last modified: 22.06.2017 --- www.javaview.de --- The JavaView Project