X3D Model Documentation: TextureProjectorComponentExample.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 4.0//EN" "https://www.web3d.org/specifications/x3d-4.0.dtd">
  3  <X3D profile='Immersive' version='4.0 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-4.0.xsd'>
  4       <head>
  5            <component level='2name='TextureProjection'/>
  6            <meta name='titlecontent='TextureProjectorComponentExample.x3d'/>
  7            <meta name='descriptioncontent='Texture projector component example'/>
  8            <meta name='creatorcontent='Kwan Hee Yoo, Dick Puk and Don Brutzman'/>
  9            <meta name='createdcontent='1 January 2019'/>
 10            <meta name='modifiedcontent='26 August 2023'/>
 11            <meta name='referencecontent='https://www.web3d.org/member-only/mantis/view.php?id=1255'/>
 12            <meta name='specificationSectioncontent='X3D encodings, ISO/IEC 19775-1, Part 1: Architecture and base components, Clause 42 Texture projector component, subclause 42.4.1 TextureProjector'/>
 13            <meta name='specificationUrlcontent='https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/textureProjector.html#TextureProjector'/>
 14            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/TextureProjectorComponentExample.x3d'/>
 15            <meta name='generatorcontent='X3D-Edit 4.0, https://savage.nps.edu/X3D-Edit'/>
 16            <meta name='licensecontent='../license.html'/>
 17       </head>
<!--

<!-- -->

<!-- to top Index for DEF node: RedDelicious
-->
 18       <Scene>
 19            <TextureProjector description='Project a red delicious texturedirection='-1 0 -1fieldOfView='0.26location='3 3 3upVector='0 1 0ambientIntensity='0color='1 1 1intensity='0.7854'>
 20 
               <!-- ImageTexture RedDelicious is a DEF node that has 1 USE node: USE_1 -->
               <ImageTexture DEF='RedDelicious'   url=' "image/Red_Delicious.jpg " "https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/image/Red_Delicious.jpg " "https://upload.wikimedia.org/wikipedia/commons/f/fb/Red_Delicious.jpg " '/>
 21            </TextureProjector>
 22            <Shape>
 23                 <Appearance>
 24                      <Material diffuseColor='0.5 0.5 0.5'/>
 25                 </Appearance>
 26                 <IndexedFaceSet solid='falsecoordIndex='3 2 1 0 -1 4 5 2 3 -1 5 6 1 2 -1'>
 27                      <Coordinate point='1 0 1 -1 0 1 -1 0 -1 1 0 -1 1 1 -1 -1 1 -1 -1 1 1'/>
 28                 </IndexedFaceSet>
 29            </Shape>
 30            <!-- add additional node example for validation testing -->
 31            <TextureProjectorParallel description='Project a red delicious texture, parallel orthographic projectiondirection='-1 0 -1fieldOfView='-1.5 -1.5 1.5 1.5location='3 3 3ambientIntensity='0color='1 1 1intensity='0.7854'>
 32                 <ImageTexture USE='RedDelicious'/>
 33            </TextureProjectorParallel>
 34       </Scene>
 35  </X3D>
<!--

<!-- -->

<!-- to top Index for DEF node: RedDelicious
-->
X3D Tooltips element index: Appearance, component, Coordinate, head, ImageTexture, IndexedFaceSet, Material, meta, Scene, Shape, TextureProjector, TextureProjectorParallel, X3D, accessType and type, XML data types, field types

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/TextureProjectorComponentExampleIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/TextureProjectorComponentExample.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)
-->

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