| 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='title' content=' Figure31_4WoodAppearancePrototypesLibrary.x3d '/> |
| 6 | <meta name='creator' content='Figure 31.4, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland'/> |
| 7 | <meta name='reference' content=' http://www.wiley.com/legacy/compbooks/vrml2sbk/ch31/31fig04.htm '/> |
| 8 | <meta name='translator' content='Don Brutzman'/> |
| 9 | <meta name='created' content='31 October 2000'/> |
| 10 | <meta name='modified' content='20 October 2019'/> |
| 11 | <meta name='description' content='An external file containing an appearance library with wood appearances.'/> |
| 12 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter31Prototypes/Figure31_4WoodAppearancePrototypesLibrary.x3d '/> |
| 13 | <meta name='generator' content='X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 14 | <meta name='license' content='../../license.html'/> |
| 15 | </head> |
| 16 | <Scene> |
| 17 | <WorldInfo title='Figure31_4WoodAppearancePrototypesLibrary.x3d'/> |
| 18 | <ProtoDeclare name='DarkOak'> |
| 19 | <ProtoInterface> |
| 20 | <field name='textureTransform' type='SFNode' accessType='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='textureTransform' protoField='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='textureTransform' type='SFNode' accessType='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='textureTransform' protoField='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='LightOak' containerField='appearance'/> |
| 60 | </Shape> |
| 61 | </Anchor> |
| 62 | </Scene> |
| 63 | </X3D> |
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.
| line 59
ProtoInstance LightOak |
No direct ROUTE connection found for events to/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. |
| line 54
Anchor |
description='Figure31_5WoodAppearanceExternalPrototypes link' User-interaction hint for this node. |
<!--
Color-coding 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>
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->