wildpeaks / 2015-json-scenegraph Goto Github PK
View Code? Open in Web Editor NEW[ARCHIVED] JSON Scenegraph
[ARCHIVED] JSON Scenegraph
This was a question from the X3D mailing-list:
how is
"$": "Shape",different than
"Shape": [The "$" doesn't add any information per se.
(Edit: $
used to be named _type
at the time)
A question have been recurring:
How to handle comments?
A question from the X3D mailing-list referencing #1 :
Wondering then, what about your repeated use of "$", isn't that the same sort of repetition as repeating "Shape" and "Transform" ?
(Edit: $
used to be called _type
at the time)
One may wonder:
How to convert ROUTE statements such as:
ROUTE interpolator.value_changed TO transform.translation
A question from the X3D mailing-list referencing #1 :
Something that jumps out is when you say "How would you make a Group that contains a Shape, a Transform and another Shape ? It can't be the following because an Object can't define property Shape twice".
That is indeed a serious constraint, if it is indeed correct - that wasn't clear about Javascript. (got a reference?)
A question that came up a few times:
Why "_type" instead of "type" ?
You might wonder:
Why bother having a
$
in every node and the name of properties, when you could automatically deduce where child nodes belong to based on their type? For example, it's obvious what aBox
and anAppearance
inside aShape
should do.
One may wonder:
How to convert CDATA blocks of text to JSON?
A question from the X3D mailing-list referencing #1 :
[...] wondering then whether this slight variation using field name (containerField) is an alternative option:
"_children": "Shape"
...
},
{
"_children": "Transform"
...
},
{
"_children": "Shape"
Single numeric value are expressed with a simple Number, but how should MFVec3f (and other MFVec types) be represented: a single long Array, or an Array of tiny Arrays ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.