1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
|
3 | <X3D profile='Immersive' version='3.3' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd'> |
4 | <head> |
5 | <component level='1' name='CADGeometry'/> |
6 | <component level='1' name='H-Anim'/> |
7 | <unit category='length' conversionFactor='0.9144' name='Yards'/> |
8 | <unit category='angle' conversionFactor='0.0174532925167' name='Degrees'/> |
9 | <meta name='title' content='TestJsonEncoding.x3d'/> |
10 | <meta name='creator' content='Don Brutzman'/> |
11 | <meta name='created' content='29 March 2015'/> |
12 | <meta name='modified' content='20 October 2019'/> |
13 | <meta name='description' content='Test scene to ensure that X3dToJson xslt stylesheet translator properly converts X3D source into JavaScript Object Notation (JSON).'/> |
14 | <meta name='reference' content='TestJsonEncoding.json'/> |
15 | <meta name='reference' content='https://www.web3d.org/wiki/index.php/X3D_JSON_Encoding'/> |
16 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/Basic/development/TestJsonEncoding.x3d'/> |
17 | <meta name='reference' content='https://www.web3d.org/x3d/stylesheets/X3dToJson.xslt'/> |
18 | <meta name='reference' content='https://www.web3d.org/x3d/stylesheets/X3dToJson.html'/> |
19 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
20 | <meta name='license' content='../license.html'/> |
21 | </head> |
22 | <Scene> |
23 | <!-- excerpted from HelloWorld.x3d --> |
24 | <WorldInfo title='TestJsonEncoding.x3d'/> |
25 | <Group> |
26 | <Viewpoint DEF='ViewUpClose' centerOfRotation='0 -1 0' description='Hello world!' position='0 -1 7'/> |
27 | <Transform rotation='0 1 0 3'> |
28 | <Shape> |
29 | <Sphere/> |
30 | <Appearance> |
31 | <!-- Test leading zeroes inserted before (and trailing zeroes inserted after) decimal points: diffuseColor='.1 0.5 1.' --> |
32 |
<!-- Material
MaterialLightBlue is a DEF node that has 1 USE node: USE_1 --> <Material DEF='MaterialLightBlue' diffuseColor='.1 0.5 1.'/> |
33 | <ImageTexture DEF='ImageCloudlessEarth' url=' "earth-topo.png " "earth-topo.jpg " "earth-topo-small.gif " "https://www.web3d.org/x3d/content/examples/Basic/earth-topo.png " "https://www.web3d.org/x3d/content/examples/Basic/earth-topo.jpg " "https://www.web3d.org/x3d/content/examples/Basic/earth-topo-small.gif " '/> |
34 | </Appearance> |
35 | </Shape> |
36 | </Transform> |
37 | <Transform translation='-.1 -2 -.2'> |
38 | <!-- Test leading zeroes inserted between -. values: translation='-.1 -2 -.2' --> |
39 | <Shape> |
40 | <Text DEF='TextMessage' string='"Hello" "JSON!"'> |
41 | <FontStyle justify='"MIDDLE" "MIDDLE"'/> |
42 | </Text> |
43 | <Appearance> |
44 | <Material USE='MaterialLightBlue'/> |
45 | </Appearance> |
46 | </Shape> |
47 | </Transform> |
48 | </Group> |
49 | </Scene> |
50 | </X3D> |
<!--
Color legend: X3D terminology
<X3dNode
DEF='idName' field='value'/>
matches XML terminology
<XmlElement
DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement)
(Grey background inside box: inserted documentation)
(Magenta background: X3D Extensibility)
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->