[x3d-public] default interpolation keys

Andreas Plesch andreasplesch at gmail.com
Sun Jul 9 20:06:52 PDT 2017


The default key field value is [ ], empty.

http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/interp.html#X3DInterpolatorNode

recognizes the validity of an empty key field, which then means no events
are generated and no interpolation happens.

Is that behavior useful for any situation ? A serious question, perhaps for
prototypes somehow ?

I am developing an Aframe equivalent to interpolation nodes (
https://github.com/andreasplesch/aframe-keyframes-component) and weigh
other default key values.

Specifically, I am leaning towards a default which provides constant
intervals for keyValues. If there are 5 keyValues, the default keys would
be [0,0.25,0,5,0.75,1]. This is what most commonly may be the expected
behavior from an interpolator. Given n keyValues, default keys are
[0/(n-1), 1/(n-1) .., (n-1)/(n-1)].

The benefits of such a default are least surprise, and more concise scenes.

The drawback is backwards incompatibility although I have not seen a scene
which uses the default key field value.

My goal is to raise a better informed specification comment as I feel there
may be more to consider.

Any comments are very welcome,

Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170709/fc6ae0fc/attachment.html>


More information about the x3d-public mailing list