[x3d-public] [x3dom-users] Improvements to the unofficial *X3D* JSON loader

clement at igonet.fr clement at igonet.fr
Fri Nov 13 15:31:41 PST 2015


It rocks!
You release it just in time for OpenEarthView project underground design (Open Street Map to X3D in node.js).
No more XML! ;-)
Thanks a lot!

Clément.

Le 13 novembre 2015 23:23:17 UTC+01:00, John Carlson <yottzumm at gmail.com> a écrit :
>I have added improvements to my unofficial X3D JSON to X3DOM loader. 
>Please test against your X3D JSON scenes.
>
>Loader (and license) is at:
>
>https://github.com/coderextreme/X3DJSONLD
><https://github.com/coderextreme/X3DJSONLD>
>
>
>You can do:
>
>$ git clone https://github.com/coderextreme/X3DJSONLD
><https://github.com/coderextreme/X3DJSONLD>
>
>then
>
>$ cd X3DJSONLD
>$ unzip
>http://www.web3d.org/x3d/content/examples/X3dExampleArchivesJsonScenes.zip
><http://www.web3d.org/x3d/content/examples/X3dExampleArchivesJsonScenes.zip>
>or actually something like:
>$ unzip ~/Downloads/X3dExampleArchivesJsonScenes.zip
>$ ln -s www.web3d.org/x3d/content/examples/ 
>$ python -m SimpleHTTPServer
>
>You should be able to go to http://localhost:8000 to see the loader in
>action.  I have moved several large scenes to the top of the select
>list.
>
>Alternatively, instead of running python, you can run node.js,
>available from https://nodejs.org/ <https://nodejs.org/>
>
>Change config.js to point to you examples folder.
>
>$ npm install
>$ node app.js
>
>Then go to http://localhost:3000 to see the loader in action.
>
>Alternatively, change the name of X3DJSONLD/index.html to
>X3DJSONLD.html, then copy X3DJSONLD.html, flipper.json and X3DJSONLD.js
>to www.web3d.org/x3d/content/ (beware of overwrites) and go to web
>server at http://www.web3d.org/x3d/content/X3DJSONLD.html (Don, you can
>try this).  I will probably make the index.html name change permanent
>at some point, but I need Don to tell me a good name that is available
>for me to use under x3d/content/ (or exactly where he wants to put the
>loader, if anywhere).
>
>If someone wants to add a typeahead search pane for the select list,
>please do.  Forks and pull requests are welcome.
>
>
>I view this code as fairly simple to review and not a large security
>risk, as long as you insure that the JSON you load does not contain
>security holes.  That is, watch out for embedded script tags and other
>nasties.  No attempt to validate the JSON is made at this point, so my
>loader will load ANY DOM found in the JSON, including SVG, HTML, etc. 
>About the only thing to watch out for is the @, - and # prefixes.  If
>you do want to load SVG or HTML JSON, you will need to make sure your
>JSON has those prefixes.
>
>John
>
>
>
>
>
>------------------------------------------------------------------------
>
>------------------------------------------------------------------------------
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>X3dom-users mailing list
>X3dom-users at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/x3dom-users

clement at igonet.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20151113/1c29f580/attachment-0001.html>


More information about the x3d-public mailing list