X3D Model Documentation: GolfRange.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2 
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
  3  <X3D profile='Interchange' version='3.0 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.0.xsd'>
  4       <head>
  5            <meta name='titlecontent=' GolfRange.x3d '/>
  6            <meta name='descriptioncontent='Display two practice ranges for golf'/>
  7            <meta name='creatorcontent='Ms Ng, Hwee Ping'/>
  8            <meta name='createdcontent='6 September 2004'/>
  9            <meta name='modifiedcontent='20 October 2019'/>
 10            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/Savage/Buildings/ZenCondominium/GolfRange.x3d '/>
 11            <meta name='generatorcontent='X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit'/>
 12            <meta name='licensecontent='../../license.html'/>
 13       </head>
<!--

<!-- -->
<!-- to top DEF nodes index: Golf_Gate_Breadth, Golf_Gate_Length, Golf_Gate_Top, Grill_Material, Post, Range, Screen

Index for Viewpoint node: Viewpoint_1
-->
 14       <Scene>
 15            <WorldInfo title='GolfRange.x3d'/>
 16 
          <!-- Group Range is a DEF node that has 1 USE node: USE_1 -->
          <Group DEF='Range'>
 17                 <Transform translation='0 0 -10'>
 18                      <Shape>
 19                           <Box size='10 0.1 8'/>
 20                           <Appearance>
 21                                <Material diffuseColor='0.6 0 0transparency='0.1'/>
 22                                <ImageTexture   url=' "grass_1.jpg " "https://www.web3d.org/x3d/content/examples/Savage/Buildings/ZenCondominium/grass_1.jpg " '/>
 23                           </Appearance>
 24                      </Shape>
 25                 </Transform>
 26                 <Transform translation='0 3 -6'>
 27 
                    <!-- Group Golf_Gate_Breadth is a DEF node that has 1 USE node: USE_1 -->
                    <Group DEF='Golf_Gate_Breadth'>
 28                           <Shape>
 29                                <Appearance>
 30                                     <!-- no material, use emissive texturing. Not really a video, just a .jpg image. -->
 31 
                                   <!-- ImageTexture Grill_Material is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
                                   <ImageTexture DEF='Grill_Material'   url=' "grill.png " "https://www.web3d.org/x3d/content/examples/Savage/Buildings/ZenCondominium/grill.png " '/>
 32                                     <TextureTransform center='0.5 0.5rotation='0.785scale='32 8'/>
 33                                </Appearance>
 34                                <IndexedFaceSet solid='falsecoordIndex='0 1 2 3texCoordIndex='0 1 2 3'>
 35                                     <Coordinate point='-5 -3 0.1 5 -3 0.1 5 3 0.1 -5 3 0.1'/>
 36                                     <TextureCoordinate point='0 0 1 0 1 1 0 1'/>
 37                                </IndexedFaceSet>
 38                           </Shape>
 39 
                         <!-- Shape Post is a DEF node that has 6 USE nodes: USE_1, USE_2, USE_3, USE_4, USE_5, USE_6 -->
                         <Shape DEF='Post'>
 40                                <Cylinder height='6radius='0.1'/>
 41                           </Shape>
 42                           <Transform translation='-5 0 0'>
 43                                <Shape USE='Post'/>
 44                           </Transform>
 45                           <Transform translation='5 0 0'>
 46                                <Shape USE='Post'/>
 47                           </Transform>
 48                      </Group>
 49                 </Transform>
 50                 <Transform translation='0 3 -14'>
 51                      <Group USE='Golf_Gate_Breadth'/>
 52                 </Transform>
 53                 <Transform rotation='0 1 0 -1.57translation='-5 3 -10'>
 54                      <Group DEF='Golf_Gate_Length'>
 55                           <Shape>
 56                                <Appearance>
 57                                     <!-- no material, use emissive texturing. Not really a video, just a .jpg image. -->
 58                                     <ImageTexture USE='Grill_Material'/>
 59                                     <TextureTransform center='0.5 0.5rotation='0.785scale='32 8'/>
 60                                </Appearance>
 61                                <IndexedFaceSet DEF='Screensolid='falsecoordIndex='0 1 2 3texCoordIndex='0 1 2 3'>
 62                                     <Coordinate point='-4 -3 0.1 4 -3 0.1 4 3 0.1 -4 3 0.1'/>
 63                                     <TextureCoordinate point='0 0 1 0 1 1 0 1'/>
 64                                </IndexedFaceSet>
 65                           </Shape>
 66                           <Transform translation='-4 0 0'>
 67                                <Shape USE='Post'/>
 68                           </Transform>
 69                           <Transform translation='4 0 0'>
 70                                <Shape USE='Post'/>
 71                           </Transform>
 72                           <Transform translation='-2.5 0 0'>
 73                                <Shape USE='Post'/>
 74                           </Transform>
 75                           <Transform translation='2.5 0 0'>
 76                                <Shape USE='Post'/>
 77                           </Transform>
 78                      </Group>
 79                 </Transform>
 80                 <Transform rotation='1 0 0 1.57translation='0 6 -10'>
 81                      <Group DEF='Golf_Gate_Top'>
 82                           <Shape>
 83                                <Appearance>
 84                                     <!-- no material, use emissive texturing. Not really a video, just a .jpg image. -->
 85                                     <ImageTexture USE='Grill_Material'/>
 86                                     <TextureTransform center='0.5 0.5rotation='0.785scale='32 8'/>
 87                                </Appearance>
 88                                <IndexedFaceSet solid='falsecoordIndex='0 1 2 3texCoordIndex='0 1 2 3'>
 89                                     <Coordinate point='-5 -4 0.1 5 -4 0.1 5 4 0.1 -5 4 0.1'/>
 90                                     <TextureCoordinate point='0 0 1 0 1 1 0 1'/>
 91                                </IndexedFaceSet>
 92                           </Shape>
 93                      </Group>
 94                 </Transform>
 95            </Group>
 96            <Transform translation='0 0 7'>
 97                 <Group USE='Range'/>
 98            </Transform>
 99            <Viewpoint description='Mini Golf Rangeorientation='-0.154 0.966 0.207 1.9863position='29.3 15.4 -16.6'/>
100       </Scene>
101  </X3D>
<!--

<!-- -->
<!-- to top DEF nodes index: Golf_Gate_Breadth, Golf_Gate_Length, Golf_Gate_Top, Grill_Material, Post, Range, Screen

Index for Viewpoint node: Viewpoint_1
-->
X3D Tooltips element index: Appearance, Box, Coordinate, Cylinder, Group, head, ImageTexture, IndexedFaceSet, Material, meta, Scene, Shape, TextureCoordinate, TextureTransform, Transform, Viewpoint, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Savage/Buildings/ZenCondominium/GolfRangeIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Savage/Buildings/ZenCondominium/GolfRange.x3d -->

<!-- Color-coding legend: X3D terminology <X3dNode  DEF='idNamefield='value'/> matches XML terminology <XmlElement  DEF='idNameattribute='value'/>
(Light-blue background: event-based behavior node or statement) (Grey background inside box: inserted documentation) (Magenta background: X3D Extensibility)
-->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->