<?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>
<!--
<!--
Event Graph ROUTE Table
shows event connections
-->
<!--
Index for DEF nodes:
ColorTimer,
ColorValue,
Eye,
FinColor,
FinSkin,
FishBodyExtrusion,
FishColor,
FishTransform,
LeftPectoral,
RightPectoral,
Way
Index for Viewpoint node:
Viewpoint_1
Index for ProtoDeclare definition:
CircleFish
-->
<Scene>
<WorldInfo title='ColorInterpolatorFishPrototype.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
fromNode='
ColorTimer' fromField='fraction_changed' toNode='
ColorValue' toField='set_fraction'/>
<
ROUTE
fromNode='
ColorValue' fromField='value_changed' toNode='
FishColor' toField='diffuseColor'/>
<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>
<!-- ==================== -->
<Viewpoint description='CircleFish with ColorInterpolator' orientation='0 1 0 1.5708' position='2 0 0.5'/>
<ProtoInstance name='CircleFish'/>
</Scene>
</X3D>
<!--
<!--
Event Graph ROUTE Table
shows event connections
-->
<!--
Index for DEF nodes:
ColorTimer,
ColorValue,
Eye,
FinColor,
FinSkin,
FishBodyExtrusion,
FishColor,
FishTransform,
LeftPectoral,
RightPectoral,
Way
Index for Viewpoint node:
Viewpoint_1
Index for ProtoDeclare definition:
CircleFish
-->
-->
<!--
Online at
https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation/ColorInterpolatorFishPrototypeIndex.html
-->
<!--
Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation/ColorInterpolatorFishPrototype.x3d
-->
<!--
Color 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.
-->