Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in _menu_load_objects() (line 579 of /home/drbiz/public/tools.realism.com/includes/menu.inc).

Revision of Animate from Wed, 06/21/2017 - 21:27

Animate : XSeen {
SFString
[]
field
''
Parent-fields
MFFloat
[]
to
[]
varies
SFTime
[]
delay
0
[0,+inf)
SFTime
[]
duration
1
(1,+inf)
SFInt
[]
repeat
0
[-1,+inf)
EnumerateString
[]
interpolator
position
'position'
EnumerateString
[]
Easing
''
''
EnumerateString
[]
EasingType
'linear'
'linear'



}

This node animates one field in the parent node. The field is specified by field. The animation starts at the current value of that field for the rendered node as animates to the to value. to is initially treated as an array of floating point values that are converted to the data-type of field.

The delay field specifies the delay from when the animation clock starts until the field first changes from this animation. The duration of each cycle of the animation is provided by duration. All times are in seconds. The animation clkock starts as soon as the initial scene is loaded. The animation cycles repeat times. A vale of -1 indicates that the animation should always repeat.

The appearance of the animation is controlled by the fields interpolator, Easing, and EasingType. The interpolator value determines what space the animation occurs. [Note; the code uses the datatype of field to determine the interpolator. The interpolator is always linear in positon-space for SFVec3f (e.g., translation, scale), unit sphere for SFRotation (slerp), and HSL space for SFColor).]

The Easing and EasingType determine how the animation interacts with the start and end points. The EasingType only has an impact of the side of the interpolation specified by Easing - in for the start, and out for the end. If Easing is not specified than EasingType is linear. Everything except linear generates smoother animations.