1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.2//EN" "https://www.web3d.org/specifications/x3d-3.2.dtd">
|
3 | <X3D profile='Immersive' version='3.2' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.2.xsd'> |
4 | <head> |
5 | <meta name='title' content='HelloWorld.x3d'/> |
6 | <meta name='description' content='Simple X3D example'/> |
7 | <meta name='created' content='30 October 2000'/> |
8 | <meta name='modified' content='20 October 2019'/> |
9 | <meta name='creator' content='Don Brutzman'/> |
10 | <meta name='reference' content='https://www.web3d.org'/> |
11 | <meta name='reference' content='https://X3dGraphics.com'/> |
12 | <meta name='Image' content='HelloWorld.tall.png'/> |
13 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/HelloWorld.x3d'/> |
14 | <meta name='license' content='https://www.web3d.org/x3d/content/examples/license.html'/> |
15 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
16 | </head> |
17 | <Scene> |
18 | <!-- Example scene to illustrate X3D nodes and fields (XML elements and attributes) --> |
19 | <WorldInfo title='HelloWorld.x3d'/> |
20 | <Group> |
21 | <Viewpoint DEF='ViewUpClose' centerOfRotation='0 -1 0' description='Hello world!' position='0 -1 7'/> |
22 | <Transform rotation='0 1 0 3'> |
23 | <Shape> |
24 | <Sphere/> |
25 | <Appearance> |
26 |
<!-- Material
MaterialLightBlue is a DEF node that has 1 USE node: USE_1 --> <Material DEF='MaterialLightBlue' diffuseColor='0.1 0.5 1'/> |
27 | <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 " '/> |
28 | </Appearance> |
29 | </Shape> |
30 | </Transform> |
31 | <Transform translation='0 -2 0'> |
32 | <Shape> |
33 | <Text DEF='TextMessage' string='"Hello" "world!"'> |
34 | <FontStyle justify='"MIDDLE" "MIDDLE"'/> |
35 | </Text> |
36 | <Appearance> |
37 | <Material USE='MaterialLightBlue'/> |
38 | </Appearance> |
39 | </Shape> |
40 | </Transform> |
41 | </Group> |
42 | </Scene> |
43 | </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. -->