<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "http://www.web3d.org/TaskGroups/x3d/translation/x3d-compact.dtd"
                     "/www.web3d.org/TaskGroups/x3d/translation/x3d-compact.dtd">
<X3D>
<head>
<meta name='filename' content='BradenProtoInitializeExample.x3d'/>
<meta name='author' content='Don Brutzman'/>
<meta name='created' content='5 March 2000'/>
<meta name='revised' content='17 September 2002'/>
<meta name='description' content='Default color red, overridden color green. Example answer to email question showing how to initialize a node field when creating a ProtoInstance.'/>
<meta name='reference' content='http://www.web3d.org/WorkingGroups/x3d-contributors/hypermail/2000/0487.html'/>
<meta name='url' content='http://www.web3d.org/TaskGroups/x3d/translation/examples/development/BradenProtoInitializeExample.x3d'/>
<meta name='generator' content='X3D-Edit, http://www.web3d.org/TaskGroups/x3d/translation/README.X3D-Edit.html'/>
</head>
<!--

Index for ProtoDeclareFoo. Index for DEFFOO_APPEARANCE.

-->
<Scene>
<ProtoDeclare name='Foo'>
<field name='runtimeMaterialInstance' type='SFNode' accessType='inputOutput'>
<Material diffuseColor='1 0 0'/>
</field>
<Shape>
<Appearance DEF='FOO_APPEARANCE'>
<IS>
<connect nodeField='material' protoField='runtimeMaterialInstance'/>
</IS>
</Appearance>
<Sphere/>
</Shape>
</ProtoDeclare>
<ProtoInstance name='Foo'>
<fieldValue name='runtimeMaterialInstance'>
<Material diffuseColor='0 1 0'/>
</fieldValue>
</ProtoInstance>
</Scene>
</X3D>
<!--

Index for ProtoDeclareFoo. Index for DEFFOO_APPEARANCE.

-->
<!-- Tag color codes: <NodeType DEF='NodeName' attribute='value'/> < Prototype name='ProtoName'/> < field name='fieldName'/> </Prototype > -->