CHAPTER 9
800
Multimedia Features
The descriptions of the animation styles (see Table 9.37) use the following vari-
ables to represent application time or keyframe settings specified in the 3D art-
work.
t
is a point on the animation time line. This value is used in conjunction with
the keyframe animation data to determine the state of the 3D artwork.
[r
0
,
r
1
] is the keyframe animation time line.
t
a
is the current time of the viewer application.
t
0
is the time when the viewer application starts the animation.
p
is the time it takes to play the keyframe animation through one cycle. In the
case of the
Linear
animation style, one cycle plays the animation through once
from beginning to end. In the case of the
Oscillating
animation style, one cycle
plays the animation from beginning to end and then from end to beginning.
m
is the positive multiplier specified by the
TM
entry in the animation style dic-
tionary.
TABLE 9.37 Animation styles
None
Keyframe animations should not be driven directly by the viewer applica-
tion. This value is used by documents that are intended to drive anima-
tions through an alternate means, such as JavaScript.
The remaining entries in the animation style dictionary are ignored.
Linear
Keyframe animations are driven linearly from beginning to end. This ani-
mation style results in a repetitive playthrough of the animation, such as in
a walking motion.
t
= (
m
(
t
a
-
t
0
) +
r
0
) % (r
1
-
r
0
)
p
= (
r
1
-
r
0
) /
m
The “%” symbol indicates the modulus operator.
Oscillating
Keyframe animations should oscillate along their time range. This anima-
tion style results in a back-and-forth playing of the animation, such as ex-
ploding or collapsing parts.
t
= (0.5)(
r
1
-
r
0
)(1 - cos(
m
(
t
a
-
t
0
))) +
r
0
p
= 2 * pi /
m
Index Bookmark Pages Text
Previous Next
Pages: Index All Pages
This HTML file was created by VeryPDF PDF to HTML Converter product.