[x3d-public] X3DJSAIL progress report

Don Brutzman brutzman at nps.edu
Mon Mar 13 08:38:51 PDT 2017


A new X3DLoaderObject is now ready that can read .x3d scenes using native Java DOM support, using Java Reflection to then create strongly typed X3DJSAIL scene objects.  Online at

	X3DLoaderObject: Concrete class for loading an X3D graphics string, file or fragment encoded in XML.
	http://www.web3d.org/specifications/java//javadoc/org/web3d/x3d/jsail/X3DLoaderObject.html

with methods
	getDomDocument() isLoadSuccessful() getValidationResult() getX3dObjectTree()
	loadX3DfromFile(x3dFile) toStringX3D(org.w3c.dom.Node node) toX3dObjectTree(org.w3c.dom.Node node)

Example result
	https://svn.code.sf.net/p/x3d/code/www.web3d.org/x3d/stylesheets/java/examples/HelloWorldProgramOutput.Reloaded.x3d

which is a reloaded and serialized output that exactly matches input scene
     https://svn.code.sf.net/p/x3d/code/www.web3d.org/x3d/stylesheets/java/examples/HelloWorldProgramOutput.x3d

This library improvement fixes a significant bug in field types, which are getting more robust.  Also add a variety of .normalize() utility methods and validation checks on negative SFTime/MFTime values.
	http://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/fields/MFColorObject.html

As ever, demonstration test source available in
     http://www.web3d.org/specifications/java/examples/HelloWorldProgram.java

Entire build online via
	http://www.web3d.org/specifications/java/X3DJSAIL.html

Have fun with X3D Java using X3DJSAIL!  8)

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