[x3d-public] announce: X3D Java Scene Authoring Interface (SAI) open source, beta release supports .x3d serialization

Don Brutzman brutzman at nps.edu
Sun Oct 30 00:00:00 PDT 2016


Adding DEF/USE and class attributes to the object model enabled more progress to proceed on serialization.

Plenty of work left to do.  Nevertheless getting pretty incremental now, not too much restructuring or refactoring expected in the class library.

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

	http://www.web3d.org/specifications/java/examples/HelloWorldProgram.java

Here is HelloWorldProgram serialization output, which now includes all headers and indentation options.  Screenshot attached.  8)

run:
=========================
textMaterial:
<Material diffuseColor='0.0 1.0 1.0' transparency='0.1'/>

=========================
shape1:
<Shape DEF='SphereShape'>
   <Appearance DEF='GreenAppearance'>
     <Material diffuseColor='0.0 1.0 1.0' transparency='0.1'/>
   </Appearance>
   <Sphere radius='2.0' class='round'/>
</Shape>

=========================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile='Immersive' version='3.3' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-3.3.xsd'>
   <head>
     <meta content='HelloWorldProgram.java' name='title'/>
     <meta content='Don Brutzman' name='creator'/>
     <meta content='http://www.web3d.org/specifications/java/examples/HelloWorldProgram.java' name='identifier'/>
     <meta content='https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/java/examples/HelloWorldProgram.java' name='reference'/>
     <meta content='X3D Java Scene Access Interface (SAI) Library' name='generator'/>
     <meta content='http://www.web3d.org/specifications/java/examples/X3dJavaSceneAuthoringInterface.html' name='reference'/>
     <meta content='Netbeans http://www.netbeans.org' name='generator'/>
     <meta content='../license.html' name='license'/>
   </head>
   <Scene>
     <Group>
       <Shape DEF='SphereShape'>
         <Appearance DEF='GreenAppearance'>
           <Material diffuseColor='0.0 1.0 1.0' transparency='0.1'/>
         </Appearance>
         <Sphere radius='2.0' class='round'/>
       </Shape>
       <Transform translation='0.0 -3.0 0.0'>
         <Shape>
           <Appearance USE='GreenAppearance'>
           </Appearance>
           <Text string='Hello X3D Java SAI!'>
             <FontStyle family='"SERIF"' justify='"MIDDLE","MIDDLE"' topToBottom='false'/>
           </Text>
         </Shape>
       </Transform>
     </Group>
   </Scene>
</X3D>
=========================

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 --------------
A non-text attachment was scrubbed...
Name: HelloWorldProgram.java.png
Type: image/png
Size: 41437 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20161030/ea08f927/attachment-0001.png>


More information about the x3d-public mailing list