<?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>
</head>
<!--
Index for ProtoDeclare definition
:
CircleFish
Index for DEF nodes
:
Eye,
FinColor,
FinSkin,
FishBodyExtrusion,
FishColor,
FishTexture,
FishTransform,
LeftPectoral,
RightPectoral,
TransparencyTimer,
TransparencyValue,
Way
-->
<Scene>
<WorldInfo title='ScalarInterpolatorFishPrototype.x3d'/>
<ProtoDeclare name='CircleFish'>
<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.5 0.5 0.5' accessType='inputOutput'/>
<field name='finColor' type='SFColor' value='0.5 0.5 0.5' accessType='inputOutput'/>
<field name='positionKey' type='MFFloat' value='0.0 0.125 0.25 0.375 0.5 0.625 0.750 0.8751' accessType='inputOutput'/>
<field name='positionKeyValue' type='MFVec3f' value='1.5 2 0 1.5 0 -1.0 0 -1 -1.0 -1.5 0 -1.0 -1.5 2 0 -1.5 0 1.0 0 -2 1.0 1.5 0 1.0 1.5 2 0' accessType='inputOutput'/>
<field name='orientationKey' type='MFFloat' value='0.0 0.25 0.5 0.750 1' accessType='inputOutput'/>
<field name='orientationKeyValue' type='MFRotation' value='0 1 0 0 0 1 0 -1.57 0 1 0 -3.14 0 1 0 -4.71 0 1 0 -6.28' accessType='inputOutput'/>
<field name='orbitTime' type='SFTime' value='90' accessType='inputOutput'/>
</ProtoInterface>
<ProtoBody>
<Transform DEF='Way'>
<Transform rotation='1 0 0 1.395'>
<Transform DEF='FishTransform'>
<IS>
<connect nodeField='scale' protoField='fishScale'/>
</IS>
<Shape>
</Shape>
<!-- ROUTE information for TransparencyTimer node:
[from fraction_changed to TransparencyValue.set_fraction
]
-->
<TimeSensor DEF='TransparencyTimer' cycleInterval='3' loop='true' startTime='1'/>
<!-- ROUTE information for TransparencyValue node:
[from TransparencyTimer.fraction_changed to set_fraction
]
[from value_changed to FishColor.transparency
]
-->
<ScalarInterpolator DEF='TransparencyValue' key='0 .5 1' keyValue='0 1 0'/>
<ROUTE fromNode='TransparencyTimer' fromField='fraction_changed' toNode='TransparencyValue' toField='set_fraction'/>
<ROUTE fromNode='TransparencyValue' fromField='value_changed' toNode='FishColor' toField='transparency'/>
<Shape>
<Appearance DEF='FinSkin'>
<Material DEF='FinColor' transparency='0.2'>
<IS>
<connect nodeField='diffuseColor' protoField='finColor'/>
</IS>
</Material>
</Appearance>
</Shape>
<Transform translation='0.015 0.8 -0.2'>
<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.03'/>
</Shape>
</Transform>
<Transform translation='-0.015 0.8 -0.2'>
</Transform>
<Transform scale='1 1 0.7' translation='0 0.98 0'>
</Transform>
<Transform DEF='LeftPectoral' translation='0.04 0.4 0.3'>
<Shape>
<Appearance USE='FinSkin'/>
<IndexedFaceSet solid='false' coordIndex='0 1 2 -1'>
<Coordinate point='0 0 0 0 0.2 0 0.2 0.1 0'/>
</IndexedFaceSet>
</Shape>
</Transform>
<Transform DEF='RightPectoral' translation='-0.04 0.4 0.3'>
<Shape>
<Appearance USE='FinSkin'/>
<IndexedFaceSet solid='false' coordIndex='0 1 2 -1'>
<Coordinate point='0 0 0 0 0.2 0 -0.2 0.1 0'/>
</IndexedFaceSet>
</Shape>
</Transform>
</Transform>
</Transform>
</Transform>
</ProtoBody>
</ProtoDeclare>
<!-- ==================== -->
<ProtoInstance name='CircleFish'/>
</Scene>
</X3D>
<!--
Index for ProtoDeclare definition
:
CircleFish
Index for DEF nodes
:
Eye,
FinColor,
FinSkin,
FishBodyExtrusion,
FishColor,
FishTexture,
FishTransform,
LeftPectoral,
RightPectoral,
TransparencyTimer,
TransparencyValue,
Way
-->
<!--
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.
-->