Interpolate

Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in book_prev() (line 775 of /home/drbiz/public/tools.realism.com/modules/book/book.module).

Primary tabs

Provides the interpolation details for an Animate node.

Interpolate : X3DTimeDependentNode, X3DSensorNode {
SFString
[in,out]
destinationNode
NULL
[DEF names]
SFString
[in,out]
destinationField
NULL
[Fieldname]
SFString
[]
algorithm
LINEAR
['LINEAR',...]
SFNode
[in,out]
metadata
NULL
[X3DMetadataNode]
SFString
[]
space
'3D'
['3D', '2D', 'COLOR', 'ROTATION', ...]
SFBool
[in,out]
enabled
TRUE
MFFloat
[in,out]
key
[0,1]
[0,1]
varies
[in,out]
keyValue
[]
[depends on space]



}

Interpolates between keyValue elements according to algorithm generating a result in the specified output space.

The field algorithm determines which equation set to use to determine the output value. Implementations may provide more than just LINEAR. All implementations shall provide at least LINEAR.

The algorithm works in the range as specified by space. A LINEAR algorithm in COLOR space in a linear interpolation in HSV space.

The destinationNode field is a string that is the DEF name of the desired target node. The destinationField is the name of a field in the node specified by destinationNode. If there is not data-type agreement between the field specified by destinationNode and destinationFIeld and the data-type specified by space, then the implementation may choose how to handle and report the issue.

key is a child element that contains MFFloat where each element is in the range [0,1]. This is the time fraction from beginning to end of cycleInterval (from Animate) corresponding to keyValue elements. keyValue elements determined by space, For example, if space is 3D, then each element is SFVec3f.

If there are more key than keyValue elements than the last keyValue element is repeated until key is exhausted. If there are more keyValue than key elements, then the extra elements of keyValue are ignored.

The Animate node generates at most one event per frameRate per Interpolator.