X3D Model Documentation: Figure31_4WoodAppearancePrototypesLibrary.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='Immersive' 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='Figure31_4WoodAppearancePrototypesLibrary.x3d'/>
  6            <meta name='creatorcontent='Figure 31.4, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland'/>
  7            <meta name='referencecontent='http://www.wiley.com/legacy/compbooks/vrml2sbk/ch31/31fig04.htm'/>
  8            <meta name='translatorcontent='Don Brutzman'/>
  9            <meta name='createdcontent='31 October 2000'/>
 10            <meta name='modifiedcontent='20 October 2019'/>
 11            <meta name='descriptioncontent='An external file containing an appearance library with wood appearances.'/>
 12            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter31Prototypes/Figure31_4WoodAppearancePrototypesLibrary.x3d'/>
 13            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 14            <meta name='licensecontent='../../license.html'/>
 15       </head>
<!--

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

<!-- to top Index for DEF nodes: DarkOakAppearance, LightOakAppearance, wood_g_scope1, wood_g_scope2

Index for ProtoDeclare definitions: DarkOak, LightOak
-->
 16       <Scene>
 17            <WorldInfo title='Figure31_4WoodAppearancePrototypesLibrary.x3d'/>
 18            <ProtoDeclare name='DarkOak'>
 19                 <ProtoInterface>
 20                      <field name='textureTransformtype='SFNodeaccessType='inputOutput'>
 21                           <!-- NULL node as child -->
 22                      </field>
 23                 </ProtoInterface>
 24                 <ProtoBody>
 25                      <Appearance DEF='DarkOakAppearance'>
 26                           <!-- textureTransform field IS exposed through the Prototype field interface with same name -->
 27                           <IS>
 28                                <connect nodeField='textureTransformprotoField='textureTransform'/>
 29                           </IS>
 30                           <Material diffuseColor='1 0.45 0.23'/>
 31                           <ImageTexture DEF='wood_g_scope1'   url=' "../Chapter17Textures/wood_g.jpg " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter17Textures/wood_g.jpg " '/>
 32                      </Appearance>
 33                 </ProtoBody>
 34            </ProtoDeclare>
 35            <ProtoDeclare name='LightOak'>
 36                 <ProtoInterface>
 37                      <field name='textureTransformtype='SFNodeaccessType='inputOutput'>
 38                           <!-- NULL node as child -->
 39                      </field>
 40                 </ProtoInterface>
 41                 <ProtoBody>
 42                      <Appearance DEF='LightOakAppearance'>
 43                           <!-- textureTransform field IS exposed through the Prototype field interface with same name -->
 44                           <IS>
 45                                <connect nodeField='textureTransformprotoField='textureTransform'/>
 46                           </IS>
 47                           <Material diffuseColor='1 0.65 0.53'/>
 48                           <!-- Note that each prototype declaration has independent scope, and so DEF/USE is not possible for sharing. DEF remains a good way to identify the image file however. -->
 49                           <ImageTexture DEF='wood_g_scope2'   url=' "../Chapter17Textures/wood_g.jpg " "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter17Textures/wood_g.jpg " '/>
 50                      </Appearance>
 51                 </ProtoBody>
 52            </ProtoDeclare>
 53            <!-- It is a good practice to include default message linking to an example scene, in case a user tries to view this Prototype library directly. -->
 54            <Anchor description='Figure31_5WoodAppearanceExternalPrototypes link'   url=' "Figure31_5WoodAppearanceExternalPrototypes.x3d" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter31Prototypes/Figure31_5WoodAppearanceExternalPrototypes.x3d" "Figure31_5WoodAppearanceExternalPrototypes.wrl" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter31Prototypes/Figure31_5WoodAppearanceExternalPrototypes.wrl" '>
 55                 <Shape>
 56                      <Text string='"Figure31_4WoodAppearancePrototypesLibrary" "contains prototype definitions" "" "Click on text to see these Appearances in" "Figure31_5WoodAppearanceExternalPrototypes"'>
 57                           <FontStyle justify='"MIDDLE" "MIDDLE"size='0.5'/>
 58                      </Text>
 59                      <ProtoInstance name='LightOakcontainerField='appearance'/>
 60                 </Shape>
 61            </Anchor>
 62       </Scene>
 63  </X3D>
<!--

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

<!-- to top Index for DEF nodes: DarkOakAppearance, LightOakAppearance, wood_g_scope1, wood_g_scope2

Index for ProtoDeclare definitions: DarkOak, LightOak
-->
X3D Tooltips element index: Anchor, Appearance, connect, field, FontStyle, head, ImageTexture, IS, Material, meta, ProtoBody, ProtoDeclare, ProtoInstance, ProtoInterface, Scene, Shape, Text, WorldInfo, X3D, accessType and type, XML data types, field types

Event Graph ROUTE Table with 0 ROUTE connections 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.


ProtoInstance
LightOak
No ROUTE connection found for output events from this node.
This ProtoInstance contains SFNode/MFNode fieldValue declarations with
direct access to other nodes, and thus has potential to produce run-time animation. 


Anchor
description='Figure31_5WoodAppearanceExternalPrototypes link' 
User-interaction hint for this node. 
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/Chapter31Prototypes/Figure31_4WoodAppearancePrototypesLibraryIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter31Prototypes/Figure31_4WoodAppearancePrototypesLibrary.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)
    <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. -->