<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
<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
'>
<head>
<meta name='title' content='FishPrototype.x3d'/>
<meta name='description' content='This is a reusable prototype of a generic fish, which can be configured upon instancing to create customized fish.'/>
<meta name=' warning ' content=' Circular fish behavior is embedded in prototype, instead the circular path needs to be used in external files or possibly parameterized. '/>
<meta name='creator' content='Ildeniz Duman'/>
<meta name='translator' content='Scott Tufts'/>
<meta name='created' content='1 June 1998'/>
<meta name='translated' content='9 December 2001'/>
<meta name='modified' content='20 October 2019'/>
<meta name='identifier' content='
https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/FishPrototype.x3d
'/>
<meta name='generator' content='X3D-Edit 3.3,
https://savage.nps.edu/X3D-Edit'/>
<meta name='license' content='
../license.html'/>
</head>
<!--
Index for ProtoDeclare definition
:
Fish
Index for DEF nodes
:
AnimationGroup,
Eye,
FinSkin,
FishColor,
FishShape,
FishTexture,
FishTransform,
LeftPectoral,
LeftPectoralRotation,
Pelvic,
Points,
RightPectoral,
RightPectoralRotation,
RouteTImer,
Timer,
Turn,
Waggler,
Way
-->
<Scene>
<WorldInfo title='FishPrototype.x3d'/>
<ProtoDeclare name='Fish'>
<ProtoInterface>
<field name='skinTextureUrl' type='MFString' accessType='inputOutput'/>
<field name='fishScale' type='SFVec3f' value='1 1 1' accessType='inputOutput'/>
<field name='fishColor' type='SFColor' value='0.7 0.7 0.7' accessType='inputOutput'/>
</ProtoInterface>
<ProtoBody>
<Transform DEF='FishTransform'>
<IS>
<connect nodeField='scale' protoField='fishScale'/>
</IS>
<!-- ROUTE information for Way node:
[from Turn.value_changed to set_rotation
]
-->
<Transform DEF='Way'>
<Transform translation='4 0 0'>
<Transform rotation='1 0 0 1.57'>
<Shape>
</Shape>
<Shape>
<Appearance DEF='FinSkin'>
<Material diffuseColor='0.7 0.7 0.7' transparency='0.3'/>
</Appearance>
<IndexedFaceSet solid='false' coordIndex='0 1 2 3 -1'>
</IndexedFaceSet>
</Shape>
<Transform translation='0.3 2.8 -0.4'>
<Shape DEF='Eye'>
<Appearance>
<Material diffuseColor='0.5 0.5 0.5' shininess='1' specularColor='0.3 0.3 0.3'/>
</Appearance>
<Sphere radius='0.08'/>
</Shape>
</Transform>
<Transform translation='-0.3 2.8 -0.4'>
</Transform>
<Transform scale='2.6 1 0.7' translation='0 3.44 -0.1'>
</Transform>
<!-- ROUTE information for LeftPectoral node:
[from LeftPectoralRotation.value_changed to set_rotation
]
-->
<Transform DEF='LeftPectoral' translation='-0.3 2.7 0.1'>
<Shape>
<Appearance USE='FinSkin'/>
<IndexedFaceSet solid='false' coordIndex='0 1 2 -1'>
<Coordinate point='0 0 0 -0.5 -0.2 0.1 -0.25 0.2 0.25'/>
</IndexedFaceSet>
</Shape>
</Transform>
<!-- ROUTE information for RightPectoral node:
[from RightPectoralRotation.value_changed to set_rotation
]
-->
<Transform DEF='RightPectoral' translation='0.3 2.7 0.1'>
<Shape>
<Appearance USE='FinSkin'/>
<IndexedFaceSet solid='false' coordIndex='0 1 2 -1'>
<Coordinate point='0 0 0 0.5 -0.2 0.1 0.25 0.2 0.25'/>
</IndexedFaceSet>
</Shape>
</Transform>
</Transform>
</Transform>
</Transform>
<Group DEF='AnimationGroup'>
</Group>
</Transform>
</ProtoBody>
</ProtoDeclare>
<!-- ==================== -->
<ProtoInstance name='Fish'/>
</Scene>
</X3D>
<!--
Index for ProtoDeclare definition
:
Fish
Index for DEF nodes
:
AnimationGroup,
Eye,
FinSkin,
FishColor,
FishShape,
FishTexture,
FishTransform,
LeftPectoral,
LeftPectoralRotation,
Pelvic,
Points,
RightPectoral,
RightPectoralRotation,
RouteTImer,
Timer,
Turn,
Waggler,
Way
-->
<!--
Online at https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/FishPrototypeIndex.html
-->
<!--
Color key:
<X3dNode
DEF='idName' field='value'/>
matches
<XmlElement
DEF='idName' attribute='value'/>
(Light blue background: behavior node) (Grey background: inserted documentation) (Magenta background: X3D Extensibility)
<Prototype
name='ProtoName'>
<field
name='fieldName'/> </Prototype>
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources and X3D Scene Authoring Hints.
-->