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 | <meta name='title' content='WorldInfoExample.x3d'/> |
6 | <meta name='description' content='Simple examples of meta statements, comments, a WorldInfo node and a MetadataString node.'/> |
7 | <meta name='creator' content='Don Brutzman'/> |
8 | <meta name='created' content='3 March 2018'/> |
9 | <meta name='modified' content='7 December 2024'/> |
10 | <meta name='info' content='Information in head and meta elements is retained after a scene is parsed and loaded, and can be referenced via the Scene Access Interface (SAI) or Document Object Model (DOM)'/> |
11 | <meta name='reference' content='The following referenced chapter is published online but was not included in the printed book.'/> |
12 | <meta name='reference' content='Chapter15MetadataInformation.html'/> |
13 | <meta name='reference' content='https://x3dgraphics.com/chapters/Chapter15MetadataInformation.html'/> |
14 | <meta name='reference' content='https://X3dGraphics.com'/> |
15 | <meta name='reference' content='https://www.web3d.org/x3d/content/examples/X3dResources.html'/> |
16 | <meta name='reference' content='https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#Metadata'/> |
17 | <meta name='rights' content='Copyright 2018, Daly Realism and Don Brutzman'/> |
18 | <meta name='subject' content='X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com'/> |
19 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter15Metadata/WorldInfoExample.x3d'/> |
20 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
21 | <meta name='license' content='../license.html'/> |
22 | </head> |
23 | <Scene> |
24 | <!-- Comments can appear between nodes (XML elements) but are not retained after a scene is parsed, loaded and playing --> |
25 | <WorldInfo DEF='MyWorldInfo' info='"Metadata strings" "can go here" "as string array values"' title='WorldInfo.x3d Example Scene'> |
26 | <!-- WorldInfo can contain Metadata nodes in X3D but not in VRML97. --> |
27 | <!-- WorldInfo single available child field of interest is 'metadata' and so contained MetadataString must have containerField='metadata' which IS the default in X3D3' --> |
28 | <MetadataString DEF='MyMetadataStringNode' name='TestNode' reference='X3D' value='"Hello" "WorldInfo"'/> |
29 | </WorldInfo> |
30 | <Background skyColor='0 0.439216 0.760784'/> |
31 | <Viewpoint description='View scene source to see metadata examples' position='0 0 9'/> |
32 | <Anchor description='Load scene index page' parameter='"target=_blank"' url=' "WorldInfoExampleIndex.html" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter15Metadata/WorldInfoExampleIndex.html" '> |
33 | <Shape> |
34 | <Text string='"View scene source" "to see" "WorldInfoExample"'> |
35 | <FontStyle justify='"MIDDLE" "MIDDLE"'/> |
36 | </Text> |
37 | <Appearance> |
38 | <Material diffuseColor='1 0.992157 0.039216'/> |
39 | </Appearance> |
40 | </Shape> |
41 | </Anchor> |
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. -->