X3D Model Documentation: TexturePlane.x3d

  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='titlecontent='TexturePlane.x3d'/>
  6            <meta name='descriptioncontent='Animating textured plane: this world illustrates the use of the TexturePlane prototype node defined in an external file. That node creates a textured square whose texture changes based upon an input fraction. This world animates that fraction to cause the texture to animate.'/>
  7            <meta name='creatorcontent='David R. Nadeau'/>
  8            <meta name='translatorcontent='Don Brutzman'/>
  9            <meta name='createdcontent='1 July 1998'/>
 10            <meta name='translatedcontent='2 February 2014'/>
 11            <meta name='modifiedcontent='7 December 2024'/>
 12            <meta name='Imagecontent='TexturePlane.png'/>
 13            <meta name='MovingImagecontent='TexturePlaneAnimation.mp4'/>
 14            <meta name='referencecontent='originals/texplane.wrl'/>
 15            <meta name='referencecontent='http://www.siggraph.org/s98'/>
 16            <meta name='referencecontent='http://www.siggraph.org/s98/conference/courses/18.html'/>
 17            <meta name='referencecontent='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0497.htm'/>
 18            <meta name='referencecontent='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/vrml97.htm'/>
 19            <meta name='referencecontent='https://www.web3d.org/x3d/content/examples/X3dResources.html'/>
 20            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/TexturePlane.x3d'/>
 21            <meta name='generatorcontent='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/>
 22            <meta name='generatorcontent='X3D-Edit, https://savage.nps.edu/X3D-Edit'/>
 23            <meta name='licensecontent='../license.html'/>
 24       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF nodes: Clock, Plane

Index for Viewpoint node: Viewpoint_1

Index for ExternProtoDeclare definition: TexturePlane
-->
 25       <Scene>
 26            <ExternProtoDeclare name='TexturePlane'   url=' "Cut.x3d#TexturePlane" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Cut.x3d#TexturePlane" "Cut.wrl#TexturePlane" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Cut.wrl#TexturePlane" '>
 27                 <field name='texturestype='MFNodeaccessType='initializeOnly'/>
 28                 <field name='set_fractiontype='SFFloataccessType='inputOnly'/>
 29            </ExternProtoDeclare>
 30            <WorldInfo info='"Copyright (c) 1997, David R. Nadeau"title='Animating textured plane'/>
 31            <Viewpoint description='Entry viewposition='0.0 0.0 3.0'/>
 32            <NavigationInfo/>
 33            <Background skyAngle='1.57 1.87skyColor='0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.1 0.3'/>
 34            <Shape>
 35                 <Appearance>
 36                      <TextureTransform translation='0.5 0.5'/>
 37                      <ImageTexture   url=' "grill.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/grill.png " '/>
 38                 </Appearance>
 39                 <IndexedFaceSet solid='falsecoordIndex='0 1 2 3 -1texCoordIndex='0 1 2 3 -1'>
 40                      <TextureCoordinate point='0.0 0.0 4.0 0.0 4.0 4.0 0.0 4.0'/>
 41                      <Coordinate point='-1.0 -1.0 -0.05 1.0 -1.0 -0.05 1.0 1.0 -0.05 -1.0 1.0 -0.05'/>
 42                 </IndexedFaceSet>
 43            </Shape>
 44 
          <!-- ROUTE information for Plane node:  [from Clock.fraction_changed to set_fraction ] -->
          <ProtoInstance name='TexturePlaneDEF='Plane'>
 45                 <fieldValue name='textures'>
 46                      <ImageTexture   url=' "cp1.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp1.png " '/>
 47                      <ImageTexture   url=' "cp2.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp2.png " '/>
 48                      <ImageTexture   url=' "cp3.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp3.png " '/>
 49                      <ImageTexture   url=' "cp4.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp4.png " '/>
 50                      <ImageTexture   url=' "cp5.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp5.png " '/>
 51                      <ImageTexture   url=' "cp6.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp6.png " '/>
 52                      <ImageTexture   url=' "cp7.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp7.png " '/>
 53                      <ImageTexture   url=' "cp8.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp8.png " '/>
 54                      <ImageTexture   url=' "cp9.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp9.png " '/>
 55                      <ImageTexture   url=' "cp10.png " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/cp10.png " '/>
 56                 </fieldValue>
 57            </ProtoInstance>
 58 
          <!-- ROUTE information for Clock node:  [from fraction_changed to Plane.set_fraction ] -->
          <TimeSensor DEF='ClockcycleInterval='3.0loop='truestartTime='1.0'/>
 59            < ROUTE  fromNode='Clock' fromField='fraction_changed' toNode='Plane' toField='set_fraction'/>
 60       </Scene>
 61  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF nodes: Clock, Plane

Index for Viewpoint node: Viewpoint_1

Index for ExternProtoDeclare definition: TexturePlane
-->
X3D Tooltips element index: Appearance, Background, Coordinate, ExternProtoDeclare, field, fieldValue, head, ImageTexture, IndexedFaceSet, meta, NavigationInfo, ProtoInstance, ROUTE, Scene, Shape, TextureCoordinate, TextureTransform, TimeSensor, Viewpoint, WorldInfo, X3D, accessType and type, XML data types, field types

Event Graph ROUTE Table with 1 ROUTE connection total, showing X3D event-model relationships for this scene.

Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.

Clock
TimeSensor
fraction_changed
SFFloat

ROUTE
event to
(1)
Plane
ProtoInstance
set_fraction
SFFloat

Additional guidance on X3D animation can be found in the 10-Step Animation Design Process and Event Tracing hint sheets. Have fun with X3D! 😀

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/TexturePlaneIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/TexturePlane.x3d -->

<!-- Color 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)
    <ProtoInstance name='ProtoName'> <field name='fieldName'/> ProtoInstance> -->

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