[x3d-public] Proposal: sharedKeyDEF, sharedKeyUSE

John Carlson yottzumm at gmail.com
Mon Oct 9 16:09:43 PDT 2023


Proposal to share keys between Interpolators to reduce file size.

A big part of the increased file size for animations is the duplication of
the key fields in Interpolators.  My proposal is to add two fields, a
DEF-like field and a USE-like field to all? Interpolator definitions in the
standard.

The first interpolator in a shared key group would have a keyDEF field
naming the group.  A shared key field would be specified in the first
interpolator, but not subsequent interpolators.  Subsequent interpolators
in the group would have a keyUSE field referring to the shared key group.
Subsequent Interpolators would not have a key field.  A keyValue which is
not shared would also be specified in all the interpolators.

Different types of interpolators could share key values this way.

This is already basically done for HAnimMotion, but HAnim lacks the
nonlinear aspect of interpolator keys, which could be added to HAnimMotion
if not there.

This could be done with CSS class in HTML.

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20231009/167e60b0/attachment.html>


More information about the x3d-public mailing list