X3D Model Documentation: Figure31_2MaterialPrototypesLibrary.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_2MaterialPrototypesLibrary.x3d'/>
  6            <meta name='creatorcontent='Figure 31.2, 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/31fig02.htm'/>
  8            <meta name='translatorcontent='Don Brutzman'/>
  9            <meta name='createdcontent='27 September 2000'/>
 10            <meta name='modifiedcontent='20 October 2019'/>
 11            <meta name='descriptioncontent='An external file containing a material library with the WallColor-node-type definition.'/>
 12            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter31Prototypes/Figure31_2MaterialPrototypesLibrary.x3d'/>
 13            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 14            <meta name='licensecontent='../../license.html'/>
 15       </head>
<!--

<!-- to top Index for DEF node: Index for ProtoDeclare definitions: Aluminum, Aqua, Copper, Gold
-->
 16       <Scene>
 17            <WorldInfo title='Figure31_2MaterialPrototypesLibrary.x3d'/>
 18            <ProtoDeclare name='Aqua'>
 19                 <ProtoBody>
 20                      <Material diffuseColor='0 0.6 1'/>
 21                 </ProtoBody>
 22            </ProtoDeclare>
 23            <ProtoDeclare name='Gold'>
 24                 <ProtoBody>
 25                      <Material ambientIntensity='0.4diffuseColor='0.22 0.15 0shininess='0.16specularColor='0.71 0.70 0.56'/>
 26                 </ProtoBody>
 27            </ProtoDeclare>
 28            <ProtoDeclare name='Aluminum'>
 29                 <ProtoBody>
 30                      <Material ambientIntensity='0.3diffuseColor='0.3 0.3 0.5shininess='0.1specularColor='0.7 0.7 0.8'/>
 31                 </ProtoBody>
 32            </ProtoDeclare>
 33            <ProtoDeclare name='Copper'>
 34                 <ProtoBody>
 35                      <Material ambientIntensity='0.26diffuseColor='0.30 0.11 0shininess='0.08specularColor='0.75 0.33 0'/>
 36                 </ProtoBody>
 37            </ProtoDeclare>
 38            <!-- 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. -->
 39            <Anchor description='Figure31_3MaterialExternalPrototypes'   url=' "Figure31_3MaterialExternalPrototypes.x3d" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter31Prototypes/Figure31_3MaterialExternalPrototypes.x3d" "Figure31_3MaterialExternalPrototypes.wrl" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter31Prototypes/Figure31_3MaterialExternalPrototypes.wrl" '>
 40                 <Shape>
 41                      <Text string='"Figure31_2MaterialPrototypesLibrary" "contains prototype definitions" "" "Click on text to see these Materials in" "Figure31_3MaterialExternalPrototypes"'>
 42                           <FontStyle justify='"MIDDLE" "MIDDLE"size='0.5'/>
 43                      </Text>
 44                      <Appearance>
 45                           <Material diffuseColor='0 0.6 0.6'/>
 46                      </Appearance>
 47                 </Shape>
 48            </Anchor>
 49       </Scene>
 50  </X3D>
<!--

<!-- to top Index for DEF node: Index for ProtoDeclare definitions: Aluminum, Aqua, Copper, Gold
-->
X3D Tooltips element index: Anchor, Appearance, FontStyle, head, Material, meta, ProtoBody, ProtoDeclare, 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.


Anchor
description='Figure31_3MaterialExternalPrototypes' 
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_2MaterialPrototypesLibraryIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter31Prototypes/Figure31_2MaterialPrototypesLibrary.x3d -->

<!-- Color legend: X3D terminology <X3dNode field='value'/> matches XML terminology <XmlElement attribute='value'/>
(Light-blue background: event-based behavior node or statement) (Grey background inside box: inserted documentation) (Magenta background: X3D Extensibility)
    <ProtoDeclare name='ProtoName'> <field name='fieldName'/> </ProtoDeclare> -->

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