[x3d-public] X3DJSAIL. Java numbers differ from XML intermediate output. There isa problem with trailing 0's algorithm I think.
Don Brutzman
brutzman at nps.edu
Sun Mar 19 14:03:44 PDT 2017
Yes John this was fixed - thanks for the followup. Revision attached.
On 3/18/2017 11:32 AM, yottzumm at gmail.com wrote:
> Is this fixed yet? Check the JSON output too. I can provide examples again if necessary. Check numbers like: -10000000000
>
>
>
> Provide for MD5 checksum on web page if not already there.
>
>
>
> Specifically, fix PointLight location field. Or SFVec3f.
>
>
>
> Please fix or disable trailing 0 remover.
>
>
>
> Thanks,
>
>
>
> John
>
>
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
>
>
>
> *From: *yottzumm at gmail.com <mailto:yottzumm at gmail.com>
> *Sent: *Saturday, March 11, 2017 11:00 AM
> *To: *Don Brutzman <mailto:brutzman at nps.edu>; Roy Walmsley <mailto:roy.walmsley at ntlworld.com>; X3D Graphics public mailing list <mailto:x3d-public at web3d.org>
> *Subject: *X3DJSAIL. Java numbers differ from XML intermediate output. There isa problem with trailing 0's algorithm I think.
>
>
>
> I think there may be a problem in the trailing 0 digit processor. Perhaps take it out. See attached two files and JSON diff for details. Perhaps it is not a smart idea to take unchecked Stack Overflow answers.
>
>
>
> John
>
>
>
>
>
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
-------------- next part --------------
{ "X3D": {
"encoding":"UTF-8",
"@profile":"Immersive",
"@version":"3.2",
"@xsd:noNamespaceSchemaLocation":"http://www.web3d.org/specifications/x3d-3.2.xsd",
"JSON schema":"http://www.web3d.org/specifications/x3d-3.3-JSONSchema.json",
"head": {
"component": [
{
"@name":"Geospatial",
"@level":1
}
],
"meta": [
{
"@name":"title",
"@content":"Bosphorus.x3d"
},
{
"@name":"description",
"@content":"Terrain model of Bosphorus, Istanbul, Turkey"
},
{
"@name":"creator",
"@content":"Yucel Alver, Murat Ozdogan"
},
{
"@name":"created",
"@content":"29 October 2007"
},
{
"@name":"modified",
"@content":"27 February 2016"
},
{
"@name":"generator",
"@content":"Rez, http://planet-earth.org/Rez/RezIndex.html"
},
{
"@name":"identifier",
"@content":"https://savage.nps.edu/Savage/Locations/Bosphorus/Bosphorus.x3d"
},
{
"@name":"license",
"@content":"../../license.html"
},
{
"@name":"translated",
"@content":"19 March 2017"
},
{
"@name":"generator",
"@content":"X3dToJson.xslt, http://www.web3d.org/x3d/stylesheets/X3dToJson.html"
},
{
"@name":"warning",
"@content":"An experimental version of X3D JSON encoding is used for this scene. Status online at http://www.web3d.org/wiki/index.php/X3D_JSON_Encoding"
}
]
},
"Scene": {
"-children":[
{ "Group":
{
"-children":[
{ "PointLight":
{
"@location":[10000000000,0,0],
"@radius":100000000000000
}
},
{ "PointLight":
{
"@location":[-10000000000,0,0],
"@radius":100000000000000
}
},
{ "PointLight":
{
"@location":[0,10000000000,0],
"@radius":100000000000000
}
},
{ "PointLight":
{
"@location":[0,-10000000000,0],
"@radius":100000000000000
}
},
{ "PointLight":
{
"@location":[0,0,10000000000],
"@radius":100000000000000
}
},
{ "PointLight":
{
"@location":[0,0,-10000000000],
"@radius":100000000000000
}
},
{ "GeoViewpoint":
{
"@description":"Default Viewpoint",
"@position":[41.20,29.30,0],
"-geoOrigin":
{ "GeoOrigin":
{
"@DEF":"ORIGIN",
"@geoCoords":[41.30,29.31,0]
}
}
}
},
{ "Inline":
{
"@url":["tiles/0/bosphorus0-0.x3d","https://savage.nps.edu/Savage/Locations/Bosphorus/tiles/0/bosphorus0-0.x3d"]
}
}
]
}
}
]
}
}
}
More information about the x3d-public
mailing list