| 36 | <Scene> |
| 37 | <!-- Example scene to illustrate X3D nodes and fields (XML elements and attributes) --> |
| 38 | <WorldInfo DEF='WorldInfoPrimary' info='"Example scene to illustrate a simple X3D4 model"' title='Hello World X3D4!'/> |
| 39 | <WorldInfo DEF='WorldInfoSecondary' class='TestClass' id='TestID' style='TestStyle' title='test HTML CSS fields'/> |
| 40 | <NavigationInfo/> |
| 41 | <Group> |
| 42 | <Viewpoint DEF='ViewUpClose' centerOfRotation='0 -1 0' description='Hello world!' position='0 -1 7'/> |
| 43 | <Transform rotation='0 1 0 3'> |
| 44 | <Shape> |
| 45 | <Sphere/> |
| 46 | <Appearance> |
| 47 | <!-- https://htmlcolorcodes.com/colors/off-white --> |
| 48 |
<!-- Material
MaterialOffWhite is a DEF node that has 1 USE node: USE_1 --> <Material DEF='MaterialOffWhite' diffuseColor='0.980392 0.976471 0.964706'/> |
| 49 |
<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
" '/>
|
| 50 | </Appearance> |
| 51 | </Shape> |
| 52 | </Transform> |
| 53 | <Transform translation='0 -2 0'> |
| 54 | <Shape> |
| 55 | <Text DEF='TextMessage' string='"Hello" "X3D 4!"'> |
| 56 | <FontStyle justify='"MIDDLE" "MIDDLE"'/> |
| 57 | </Text> |
| 58 | <Appearance> |
| 59 | <Material USE='MaterialOffWhite'/> |
| 60 | </Appearance> |
| 61 | </Shape> |
| 62 | </Transform> |
| 63 | </Group> |
| 64 | </Scene> |
| 65 | </X3D> |
<!--
Color-coding 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.
-->