Extensible 3D - Hello Cube
Basic description
X3D is a royalty-free open standards file format and run-time architecture to represent and communicate 3D scenes and objects using XML. It is an ISO ratified standard that provides a system for the storage, retrieval and playback of real time graphics content embedded in applications, all within an open architecture to support a wide array of domains and user scenarios. (ref)
Code
X3D visualized directly in web page using HTML5 does not support self-closing tags.
<X3D xmlns="http://www.web3d.org/specifications/x3d-namespace" showStat="false" showLog="false" x="0px" y="0px" width="500px" height="300px" altImg="">
<Scene>
<Viewpoint position='0 0 3'> </Viewpoint>
<Shape>
<Appearance>
<Material diffuseColor='0.5 0.5 0.5'> </Material>
</Appearance>
<Box DEF='box' size='1 1 1'> </Box>
</Shape>
</Scene>
</X3D>