[X3D-Public] [x3dom-developers] initial X3D JSON conversion support using X3dToJson.xslt

Jung, Yvonne yvonne.jung at igd.fraunhofer.de
Sun Oct 19 02:21:01 PDT 2014


There was indeed some inconsistency, just fixed it and also added a stringified dump. If you copy this to / validate with http://jsonlint.com/ then you can easily generate some live JSON for discussion, though I'd try it out with some more files than only the flipper...


> -----Ursprüngliche Nachricht-----
> Von: Jung, Yvonne [mailto:yvonne.jung at igd.fraunhofer.de]
> Gesendet: Samstag, 18. Oktober 2014 22:45
> An: Behr, Johannes
> Cc: Kristian Sons; x3d-pulbic mlist; x3dom-developer mlist; Cecile Muller
> Betreff: Re: [x3dom-developers] [X3D-Public] initial X3D JSON conversion
> support using X3dToJson.xslt
> 
> Hi, no, it contains an array, just click on the small arrow to see the children.
> 
> ________________________________________
> Von: Behr, Johannes
> Gesendet: Samstag, 18. Oktober 2014 22:39
> An: Jung, Yvonne
> Cc: Clayton Cottingham; Don Brutzman; Kristian Sons; Cecile Muller; x3d-pulbic
> mlist; x3dom-developer mlist
> Betreff: Re: [x3dom-developers] [X3D-Public] initial X3D JSON conversion
> support using X3dToJson.xslt
> 
> Hi Yvonne,
> 
> > just wrote a very small test that instead dumps a given scene as JSON
> > to the Browser console (ignore __proto__, this is always there in JS,
> > should be skipped when serializing). Here is the example (click the
> > "dump" button and see the result in the console):
> > http://www.x3dom.org/x3dom/test/functional/flipper.html
> 
> This is interesting. But the "children" container ins "Scene" is empty ?!?
> 
> Best regards
> Johannes
> 
> > This is because I think, it might be easier to start the other way round: the
> X3DOM runtime already has all information for creating some test JSONs. The
> export could then be refined/optimized based on some tests and from that, a
> first and easy to integrate draft could be derived. What do you think?
> > Best, Yvonne
> >
> >
> > Von: Clayton Cottingham [mailto:drfrog666 at gmail.com]
> > Gesendet: Samstag, 18. Oktober 2014 19:14
> > An: Don Brutzman; Behr, Johannes; Kristian Sons; Cecile Muller; Jung,
> > Yvonne
> > Cc: x3d-public mlist; x3dom-developer mlist
> > Betreff: Re: [x3dom-developers] [X3D-Public] initial X3D JSON
> > conversion support using X3dToJson.xslt
> >
> > Ive been looking into this but stumbling on how to re-initialize the
> > x3dom runtime after updating the x3don scene
> >
> > On 16 October, 2014 10:50:10 PM PDT, Don Brutzman <brutzman at nps.edu>
> wrote:
> > abject pleading follows   8)
> >
> > On 10/13/2014 12:47 PM, Don Brutzman wrote:
> >  [...]
> >  d. still not seeing an X3DOM example of JSON.parse() and .json scene
> (though have asked several times).
> >
> >  as before, if X3DOM has an internal X3D model with corresponding parsable
> JSON, that will be very helpful.
> >
> >  is anything online, hopefully showing loading and parsing?
> >
> >  if not, OK.  even draft-y or different-ish examples will likely aid
> understanding.
> >
> >  i think that the current HelloWorld.json example seems perfectly parsable
> already, and it would be good to see how much close the result is to how
> X3DOM works.
> >
> > It would be great if someone experienced could uncover or spin together
> some kind of JSON.parse() conversion code that loads the attached .json syntax
> into X3DOM.
> >
> > This will get some good visibility at the VR Hackathon this weekend, all
> contributions welcome and will be fully credited.
> >
> > Of course am willing to vary the encoding pattern if that helps simplify the
> loading - that is the whole goal, find the right balance.
> >
> > Not sure our Javascript skills are up to the task, but we will struggle with it.
> :0
> >
> > Thanks for any help.
> >
> > all the best, Don
> >
> > --
> > Sent from my Android
> 
> ---
> Dr. Johannes Behr
> Head of Department: Visual Computing System Technologies Fraunhofer-
> Institut für Graphische Datenverarbeitung IGD Fraunhoferstr. 5  |  64283
> Darmstadt  |  Germany Tel +49 6151 155-510  |  Fax +49 6151 155-196
> johannes.behr at igd.fraunhofer.de  |  www.igd.fraunhofer.de
> 
> 
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> _______________________________________________
> x3dom-developers mailing list
> x3dom-developers at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x3dom-developers



More information about the X3D-Public mailing list