[x3d-public] X3DJSAIL progress report

Don Brutzman brutzman at nps.edu
Mon Feb 20 09:56:30 PST 2017


X3D Java Scene Access Interface Library (X3DJSAIL) provides standard X3D Java interfaces with concrete implementation classes, all as open source.

Goals include making it easy to create an X3D scene graph using Java, while also making it hard to create an incorrect or invalid X3D model.

Further progress and new update released, online at

	http://www.web3d.org/specifications/java/X3dJavaSceneAuthoringInterface.html
	http://www.web3d.org/specifications/java/javadoc

Autogenerated source code improvements are continuing.  Support for field-type objects (SFBoolObject, MFVec3fObject) is now more complete and useful for programming values that can be inserted as attribute values in the scene graph.

	Package org.web3d.x3d.jsail.fields
	The fields subpackage is provided for creating typed X3D field values and also includes various utility capabilities.
	http://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/fields/package-summary.html

A new X3DLoaderObject is nearly ready that can read .x3d scenes using native Java DOM support, using Java Reflection to then create strongly typed X3DJSAIL scene objects.  Almost there but debugging continues (some attribute values are somehow getting scrambled) and 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
methods
	getDomDocument() isLoadSuccessful() getValidationResult() getX3dObjectTree()
	loadX3DfromFile(x3dFile) toStringX3D(org.w3c.dom.Node node) toX3dObjectTree(org.w3c.dom.Node node)

Example result (still debugging)

	https://svn.code.sf.net/p/x3d/code/www.web3d.org/x3d/stylesheets/java/examples/HelloWorldProgramOutput.Reloaded.x3d
	http://www.web3d.org/specifications/java/examples/HelloWorldProgram.Reloaded.java

Problem with website access, the new example file linked above is present in the directory but apparently not retrievable.  Mantis issue submitted for website.

	1138: X3DJSAIL example directory and specific file not visible
	http://www.web3d.org/member-only/mantis/view.php?id=1138

Comprehensive X3DJSONLD unit tests by John Carlson using the X3D Examples Archives have revealed a number of bugs and worthy enhancements.  Steady improvements continue.

	X3DJSONLD
	https://github.com/coderextreme/X3DJSONLD

	X3D Examples Archives
	http://www.web3d.org/x3d/content/examples/X3dResources.html#Examples

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