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

John Carlson yottzumm at gmail.com
Mon Nov 16 06:05:24 PST 2015


Here are possible fixes for Don’s zero length files in his JSON zip.  http://coderextreme.net/PossiblyFixed.zip <http://coderextreme.net/PossiblyFixed.zip> No guarantees, because I have not reviewed them!  I am trying to load them into a  web page and that is it (should I try one of my generated schemas?)

examples/Basic/ExperimentalBinaryCompression/Lion.json
examples/Basic/ExperimentalBinaryCompression/LionCoded.json
examples/Basic/Geospatial/MarsLOD002.json
examples/Basic/Geospatial/MarsLOD005.json
examples/Basic/Geospatial/MarsLOD008.json
examples/Basic/Geospatial/MarsLOD011.json
examples/Basic/Geospatial/MarsLOD017.json
examples/Basic/Geospatial/MarsLOD020.json
examples/Basic/Geospatial/MarsLOD023.json
examples/Basic/Medical/BodySkinIndexedFaceSetNIST.json
examples/Basic/Medical/BonesHead.json
examples/Basic/Medical/BonesMandible.json
examples/Basic/Medical/BonesAllSkeleton.json
examples/Basic/Shaders/Flutter.json
examples/Basic/StudentProjects/AllenDutton.json
examples/Basic/StudentProjects/LaetitiaSprints.json
examples/Basic/Medical/SkeletonCompleteNoNormals.json
examples/ConformanceNist/Appearance/PixelTexture/256PixelTexture.json
examples/ConformanceNist/Geometry/IndexedLineSet/15000-polylines-defcolor.json
examples/ConformanceNist/GeometricProperties/Coordinate/15000points_lineset.json
examples/ConformanceNist/Geometry/IndexedLineSet/15000-Vertices.json
examples/Savage/AircraftFixedWing/B52H-StrategicBomber-UnitedStates/B52HStatic.json
examples/Savage/Locations/CampPendletonCalifornia/CampPendletonOperatingAreasExample.json
examples/Savage/Locations/FortLauderdaleFlorida/FortLauderdaleDepths10m.json
examples/Basic/Medical/SkeletonCompleteNormals.json
examples/Savage/AircraftHelicopters/JhlHeavyLift-NPS/JointHeavyLiftHelicopter.json
examples/Savage/Locations/FortLauderdaleFlorida/FortLauderdaleDepths20m.json
examples/Savage/Robots/UnmannedUnderwaterVehicles/Bluefin21BPAUV.json
examples/Savage/Scenarios/RemusMission10MAR2003/RemusMissionLineTrackPlayback.json
examples/Savage/Scenarios/UssColeTerroristAttack/AdenHarbor.json
examples/Savage/Scenarios/UssColeTerroristAttack/AdenHarborSmallScale.json
examples/Savage/ShipsCivilian/PersonalWaterCraft/JetskiWithRider.json
examples/Savage/Locations/MontereyBayCalifornia/MontereyBayLargeMesh.json
examples/Savage/Tools/Authoring/GridsExamplePixelTexture.json
examples/X3dForAdvancedModeling/Matlab/PhasedArrayBeamExample.json
examples/X3dForAdvancedModeling/GeometricShapes/IcosahedronSubdivisionLevel5.json
examples/Savage/ShipsCivilian/ResearchVessels/Endeavor.json
examples/Savage/Tools/Authoring/PixelTextureNavyJackDontTreadOnMe.jsonJohn
> On Nov 13, 2015, at 6:17 PM, John Carlson <yottzumm at gmail.com> wrote:
> 
> Okay, I was able to create JSON both from my SAX parser and Jsonix.  I will work on converting one of the two (probably Jsonix, since it already has arrays from my custom X3D XML schema) to our X3D JSON format, likely using JavaScript.
> 
> Unless you think something is more pressing?  I would like a solution for large files, if not an ant directive.
> 
> John
> 
>> On Nov 13, 2015, at 5:54 PM, John Carlson <yottzumm at gmail.com <mailto:yottzumm at gmail.com>> wrote:
>> 
>>> Yipes my editor session just froze.  That is a BIG file
>> 
>> John
>> 
>> 
>>> Example memory overrun:
>>> 
>>> C:\x3d-code\www.web3d.org <http://www.web3d.org/>\x3d\content\examples\X3dForAdvancedModeling/GeometricShapes//IcosahedronSubdivisionLevel5.x3d processing with X3dToJson stylesheet
>>> Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
>>> 	at java.util.Arrays.copyOfRange(Arrays.java:3664)
>>> 	at java.lang.String.<init>(String.java:207)
>>> 	at java.lang.String.substring(String.java:1933)
>>> 	at net.sf.saxon.sort.CodepointCollator.substringAfter(CodepointCollator.java:139)
>>> 	at net.sf.saxon.functions.Contains.evaluateItem(Contains.java:64)
>>> 	at net.sf.saxon.expr.ExpressionTool.evaluate(ExpressionTool.java:296)
>>> 	at net.sf.saxon.instruct.GeneralVariable.getSelectValue(GeneralVariable.java:373)
>>> 	at net.sf.saxon.instruct.Instruction.assembleParams(Instruction.java:147)
>>> 	at net.sf.saxon.instruct.CallTemplate.processLeavingTail(CallTemplate.java:291)
>>> 	at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
>>> 	at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:686)
>>> 	at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
>>> 	at net.sf.saxon.instruct.Template.expand(Template.java:220)
>>> 	at net.sf.saxon.instruct.CallTemplate$CallTemplatePackage.processLeavingTail(CallTemplate.java:440)
>>> 	at net.sf.saxon.instruct.CallTemplate.process(CallTemplate.java:259)
>>> 	at net.sf.saxon.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:275)
>>> 	at net.sf.saxon.expr.ExpressionTool.evaluate(ExpressionTool.java:296)
>>> 	at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:339)
>>> 	at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:540)
>>> 	at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:686)
>>> 	at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:549)
>>> 	at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:686)
>>> 	at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
>>> 	at net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:203)
>>> 	at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:345)
>>> 	at net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:210)
>>> 	at net.sf.saxon.instruct.ApplyTemplates.process(ApplyTemplates.java:170)
>>> 	at net.sf.saxon.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:275)
>>> 	at net.sf.saxon.expr.ExpressionTool.evaluate(ExpressionTool.java:296)
>>> 	at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:339)
>>> 	at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:540)
>>> 	at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
>>> Java Result: 1
>>> 
>>> ... also I will look at how to configure larger heap space in ant.
>>> all the best, Don
>>> -- 
>>> Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu <mailto: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 <http://faculty.nps.edu/brutzman>
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20151116/bc938d96/attachment.html>


More information about the x3d-public mailing list