[x3d-public] New X3D JSON Loader

John Carlson yottzumm at gmail.com
Sat Mar 19 11:17:41 PDT 2016


Download git, then do:

git clone https://github.com/coderextreme/X3DJSONLD

at the command prompt in your favorite folder.

There’s an index.html in the X3DJSONLD folder that is created.  There are json files too (the format probably has changed—you may need to change your JSON).  More examples here (I need to test more of these today) http://www.web3d.org/x3d/content/examples/X3dExampleArchivesJsonScenes.zip

There are calls to loadX3DJS in loaderJQuery.js.

Perhaps a chat session would suffice.  Please contact me.  I’m yottzumm on Skype.

Path is like the file path and is used for loading relative URLs mentioned in the file.  There are other utilities in loaderJQuery.js that take URLs to JSON files.  Look for $.getJSON

If you send me an example JSON file I can take a look.

John
> On Mar 19, 2016, at 12:48 PM, Clement IGONET <clement at igonet.fr> wrote:
> 
> Sorry John, but the way to use your loader is still very unclear for me.
> 
> I'd like to use your X3DJSONLD, but even with your explanations given
> in private, I'm still missing some info.
> 
> Could you provide a very simple example as a starting point?
> I mean:
> - an html file,
> - json data (an objet or a file)
> - and a suited call to our main loadX3DJS function().
> 
>> function loadX3DJS(json, path, xml, NS)
> 
> I still don't understand the required parameters.
> If "path" is the path to a json file, what is "json" ?
> 
> Maybe you could provide several functions to split your main function
> in understandable ones...
> 
> Sorry, I really feel stupid, but trying to understand your work is
> very time consuming for me. I have a lot of this to do after that to
> exploit your nice loader. So, your help would be very appreciated.
> 
> Thank you,
> 
> Clement.




More information about the x3d-public mailing list