Post

CoordinateInterpolator1D

CoordinateInterpolator1D
Interpolation

Overview

CoordinateInterpolator1D generates a series of MFFloat values. Authors can ROUTE value_changed output events to an MFFloat attribute.

The CoordinateInterpolator1D node belongs to the Interpolation component and requires at least support level 5, its default container field is children. It is available from X3D version 4.1 or higher.

Info: Please note that this node is still experimental, i.e. the functionality of this node may change in future versions of X_ITE.

Hierarchy

1
2
3
4
+ X3DNode
  + X3DChildNode
    + X3DInterpolatorNode
      + CoordinateInterpolator1D

Fields

TypeAccess TypeNameDefault Value
SFNode[in, out]metadataNULL
SFFloat[in]set_fraction 
MFFloat[in, out]key[ ]
MFFloat[in, out]keyValue[ ]
MFFloat[out]value_changed 

SFNode [in, out] metadata NULL [X3DMetadataObject]

Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.

Hint

SFFloat [in] set_fraction (-∞,∞)

set_fraction selects input key for corresponding keyValue output.

Hint

  • set_fraction values are typically in same range interval as values in the key array. Response to an input set_fraction value less than minimum is equivalent to minimum key, and response to an input set_fraction value greater than maximum is equivalent to maximum key.

Warning

  • It is an error to define this transient inputOnly field in an X3D file, instead only use it a destination for ROUTE events.

MFFloat [in, out] key [ ] (-∞,∞)

Definition values for linear-interpolation function input intervals, listed in non-decreasing order and corresponding to a value in the keyValue array.

Hints

  • Number of keyValues must be an integer multiple of the number of keys!
  • KeyValue/key integer multiple defines how many coordinates are sent in value_changed outputOnlys.
  • Typical interval for values in key array is within range of 0 to 1, but larger intervals can be defined with arbitrary bounds.

Warning

  • Values in key array shall be monotonically non-decreasing, meaning that each value is greater than or equal to the preceding value.

MFFloat [in, out] keyValue [ ] (-∞,∞)

Output values for linear interpolation, each corresponding to an input-fraction value in the key array.

Hints

MFFloat [out] value_changed

Linearly interpolated output value determined by current key time and corresponding keyValue pair.

Hints

  • X3D players might not send unchanging intermediate values, thus avoiding excessive superfluous events that have no effect.
  • KeyValue/key integer multiple defines how many coordinates are sent in value_changed outputOnlys.

Warning

  • It is an error to define this transient outputOnly field in an X3D file, instead only use it a source for ROUTE events.

Browser Compatibility

Castle Game EngineFreeWRLX_ITE X3D BrowserX3D-EditX3DOM

See Also

  • This node is similar to CoordinateInterpolator2D but generates a series of MFFloat values instead of SFVec2f or MFVec2f 2-tuple float values.
This post is licensed under CC BY 4.0 by the author.