Titania X3D Editor

Bring Colours to Your Life.

Titania v4.0.1

Bring Colours to Your Life.

X3D Reference

SplineScalarInterpolator

SplineScalarInterpolator

SplineScalarInterpolator performs non-linear interpolation among paired lists of float values and velocities to produce an SFFloat value_changed output event.

The SplineScalarInterpolator node belongs to the Interpolation component and its container field is children. It is available since X3D version 3.2 or later.

Hierarchy

Fields

SFNode [in, out] metadata NULL [X3DMetadataObject]

Metadata are not part of the X3D world and not interpreted by the X3D browser, but they can be accessed via the ECMAScript interface.

SFFloat [in] set_fraction (-∞,∞)

Set_fraction selects input key for corresponding use of keyValue, keyVelocity values for output computation.

SFBool [in, out] closed FALSE

Whether or not the curve is closed (i.e. matching end values), with continuous velocity vectors as the interpolator transitions from the last key to the first key.

Warnings

If velocity vectors at first and last keys are specified, the closed field is ignored. If keyValues at first and last key are not identical, the closed field is ignored.

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

Definition parameters for nonlinear-interpolation function time intervals, in increasing order and corresponding to keyValue, keyVelocity array values.

Warning

Number of keys must match number of keyValues!

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

Output values for nonlinear interpolation, each corresponding to time-fraction keys.

Warning

Number of keys must match number of keyValues!

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

Output values for nonlinear interpolation, each corresponding to time-fraction keys.

Warning

Number of keys must match number of keyVelocity values!

SFBool [in, out] normalizeVelocity FALSE

NormalizeVelocity field specifies whether the velocity vectors are normalized to produce smooth speed transitions, or transformed into tangency vectors.

See Also

X3D 19.2.3 Non-linear interpolation

SFFloat [out] value_changed

Nonlinearly interpolated output value computed by using current time fraction along with corresponding key, keyValue and keyVelocity values.

Description

Hints

  • Typical input connection is ROUTE someTimeSensorDEF.fraction_changed TO thisInterpolatorDEF.set_fraction
  • Typical output connection is ROUTE thisInterpolatorDEF.value_changed TO someDestinationNodeDEF.set_someAttribute.
  • Include <component name='Interpolation' level='4'/>

Example

SplineScalarInterpolator

Downlod ZIP file

XML Encoding

Classic Encoding

JSON Encoding

Browser Compatibility

Titania X_ITE
yes yes

External Links