<div dir="auto">As I am looking to add glTF animation support for x3dom, I am considering convenient ways to do cubic spline and step wise interpolation with x3d interpolators.<div dir="auto">glTF has three modes of interpolation: linear, cubic spline, step.</div><div dir="auto"><br></div><div dir="auto">Linear corresponds to the linear interpolation of the regular x3d interpolators.</div><div dir="auto"><br></div><div dir="auto">Step produces jumps at key times, and can be represented with x3d interpolators also, by repeating keys. However, implementation could be optimized for a special step mode.</div><div dir="auto"><br></div><div dir="auto">Cubic spline almost corresponds to the x3d spline interpolators but not exactly. With glTF, the velocity derived tangent can be different towards and away from a key frame, while in x3d there is only a single velocity. Also, in glTF, the tangents are requied and part of a 3 tuple for each frame. This makes computing the cubic spline interpolation straightforward and performant. </div><div dir="auto"><br></div><div dir="auto">So it turns out to be most convenient and efficient to forgo the x3d spline interpolators and instead add a mode SFString init only field to the regular interpolators with a 'linear' default. I currently have it not exposed declaratively and for use with glTF only but why not expose it.</div><div dir="auto"><br></div><div dir="auto">Such a mode field allows for optimization of step and cubic spline interpolation over regular, and NURBS interpolators, and allows for full glTF animation support.</div><div dir="auto"><br></div><div dir="auto">Other browsers may have similar goals but likely differing strategies which would be great to hear about.</div><div dir="auto"><br></div><div dir="auto">Any feedback or comment much welcome,</div><div dir="auto"><br></div><div dir="auto">Andreas</div><div dir="auto"><br><div data-smartmail="gmail_signature" dir="auto">-- AP on the road</div></div></div>