[x3d-public] ECMAScript 6 SAI (NOT JSON)
John Carlson
yottzumm at gmail.com
Sun Oct 31 21:25:53 PDT 2021
I am posting to a different subject.
The reason to implement a new SAI in ECMAScript 6 would be to take
advantage of classes and modules in ES6.
How far it would diverge from standard SAI, IDK.
I do not think we should load ES6 modules with JavaScript modules.
One reason stylesheets are useful is that you can make tiny tweaks, and
you can achieve a new syntax.
But I don't want to be a stylesheet programmer, unless we go with
something like i18n. Feasibility of this, IDK. That's why people do
research.
John
On 10/31/21 20:45, Joseph D Williams wrote:
>
> Does anyone want to discuss SAI for building a scenegraph from
> X3DJSON? What approaches are out there?
>
> Just wondering, or waking up, why would there be a special SAI for use
> with json? All I thought I needed was a way to reliably import/export
> nodes and parameters ilnto a standard scenegraph using standard SAI
> interfaces.
>
> Sure, using external programming interfaces to build a scene by
> authoring or importing nodes and statements and structures is
> possible, but regardless the scenegraph is built from nodes and
> statements that may be emitted from and external and internal scripts
> activated when the scene is initialized using the spec SAI.
>
> At this point I still think of the json as a way to store some data
> and some organized way for import into the x3d scenegraph using the
> spec interfaces for external and external programming. Bite my lip,
> but why think of a scenegraph built entirely for json? How can I say
> no way, too verbose😊I don’t think there needs to be a canonical form
> for a scene built from json, like for x3d xml and x3d Classic. I think
> it is more appropriate to think of the Json as imported into or from
> the scene and integrated into the scenegraph to be accessible by SAI
> using the existing SAI with the canonical user code in XML or Classic
> (same interfaces for both).
>
> Thanks,
>
> Joe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20211031/b95b29e7/attachment.html>
More information about the x3d-public
mailing list