[x3d-public] announce: updated encoding, X3D to JSON Stylesheet Converter

Don Brutzman brutzman at nps.edu
Fri Nov 13 14:47:41 PST 2015


great insight, makes total sense.  i will work on it.  thanks!


On 11/13/2015 12:49 PM, John Carlson wrote:
> Don, I think the JSON encoding or translation of string arrays should be improved.  See attached HelloWorld.json for something that looks better.  We could probably make yours work, but for a human encoding a scene, it’s very counter-intuitive.  It looks like you’re creating an array to put a single string in it.
>
> Thanks.
>
> //  This looks better:
>
> "@url":["earth-topo.png", "earth-topo.jpg", "earth-topo-small.gif", "http://www.web3d.org/x3d/content/examples/Basic/earth-topo.png", "http://www.web3d.org/x3d/content/examples/Basic/earth-topo.jpg", "http://www.web3d.org/x3d/content/examples/Basic/earth-topo-small.gif”]
>
> // than this, which is what you have:
>
> "@url":["\"earth-topo.png\" \"earth-topo.jpg\" \"earth-topo-small.gif\" \"http://www.web3d.org/x3d/content/examples/Basic/earth-topo.png\" \"http://www.web3d.org/x3d/content/examples/Basic/earth-topo.jpg\" \"http://www.web3d.org/x3d/content/examples/Basic/earth-topo-small.gif\”"]

all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman



More information about the x3d-public mailing list