Virtual Models

2D Animation

Fractal Staircase

Basic animation

This animation was created from the first example. The only change is that the line expands its length according to the movement of the point. Therefore, we have here a moving point that draws a line in 2D.

The animation was obtained with default parameters:

TimeBegin=0
TimeEnd=10 
Frames=50 

MuPAD produced animation with 21 frames, 10 seconds long. The file was saved as anim01.xvc. Then utility xvc2jvx was used with -f 2 parameter. This way 21 jvx files was created: anim02.1.jvx, anim02.2.jvx, ..., anim02.21.jvx. The jvd file was saved directly from MuPAD.

NOTE: at the time of developing this model MuPAD does not save directly jvx files for animation. It will save only one jvx file representing current view of the graphics.

MuPAD animation in Flash

JavaView

The anim02.*.jvx files created by utility xvc2jvx were used as keyframes for JavaView animation. JavaView applet uses default parameters with

<param name=Animation.firstKey value=2>
<param name=Animation.lastKey value=20>
<param name="Animation.framesPerSecond" value=12>

Unfortunately, JavaView does not handle this animation properly.

 

Copyright © 2005, Miroslaw Majewski (last update 6/11/2005)