[x3d-public] X3DJSAIL differences. Input JSON (converted to Java) produces output JSON. Roundtrip comparison

Don Brutzman brutzman at nps.edu
Mon Feb 6 07:54:24 PST 2017


thanks John.

question:  the JSON-encoded .json scenes on the website with the X3D Examples is created by the X3dToJson.xslt spreadsheets.  Are you comparing those?

Alternatively are you loading original.x3d and converting to original.json, then comparing to original.x3d -> original.java -> original.json ?


On 2/2/2017 8:56 AM, yottzumm at gmail.com wrote:
> Here is a compressed archive of diffs for JSON input to X3DJSONLD which is converted to Java by the JavaSerializer.js and then run to produce output JSON.   The JSON input and output JSON is then diff -w’ed and the result is saved to a file.  I have run this on my examples and the examples from the X3D Resources Examples.   Results are here http://coderextreme.net/Diffs.tar.gz  grab them while they are hot.

got it

> So basically, these are the samples where JSON output was created and the Java didn’t fail to compile or run.  Please peruse them and use them to improve X3DJSAIL (specifically, precision , ProtoInstance and newlines at least).  The original is marked with < and the converted is marked with >
>
> Over 2000 examples were successfully converted to JSON and produced a diff.  One file successfully produced a diff -w with no output.  Let’s improve this number.  This may mean improving the stylesheet, or the parameters/configuration X3dToJson.xslt is called with, or even modifying the Java itself.
>
> Over 1400 examples still don’t compile or produce runtime errors.  Let’s reduce this number.

woof, a ways to go!

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