#VRML V2.0 utf8
# X3D-to-VRML-97 XSL translation autogenerated by X3dToVrml97.xslt
# https://www.web3d.org/x3d/content/X3dToVrml97.xslt
# Generated using XSLT processor: Saxonica
# [X3D] VRML V3.3 utf8
# PROFILE Immersive
# [X3D] version=3.3
# [X3D] noNamespaceSchemaLocation=https://www.web3d.org/specifications/x3d-3.3.xsd
# [head]
# META "title" "ColorInterpolatorFishPrototype.x3d"
# META "description" "This is a prototype for a CircleFish, which is also used by CircleFishLod. Default fish size: length is 1 m (Y-axis), max Height is 1 m (Z-axis), max Width is 10 cm (X-axis)."
# META "creator" "Ildeniz Duman"
# META "translator" "Scott Tufts"
# META "created" "1 May 1998"
# META "translated" "11 December 2001"
# META "modified" "20 October 2019"
# META "reference" "https://X3dGraphics.com/examples/X3dForWebAuthors/KelpForestExhibit/CircleFishPrototype.x3d"
# META "identifier" "https://X3dGraphics.com/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation/ColorInterpolatorFishPrototype.x3d"
# META "generator" "X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit"
# META "license" "../license.html"
# [Scene] ========== ========== ==========
NavigationInfo { type [ "EXAMINE" "ANY" ] } ### Default X3D NavigationInfo
WorldInfo {
title "ColorInterpolatorFishPrototype.x3d"
}
PROTO CircleFish [
### Warning: ProtoInterface is unreferenced in ProtoBody with no corresponding IS/connect/@protoField
exposedField MFString skinTextureUrl [
""
]
exposedField SFVec3f fishScale 1 1 1
exposedField SFColor fishColor 0.5 0.5 0.5
exposedField SFColor finColor 0.5 0.5 0.5
### Warning: ProtoInterface is unreferenced in ProtoBody with no corresponding IS/connect/@protoField
exposedField MFFloat positionKey [ 0.0 0.125 0.25 0.375 0.5 0.625 0.750 0.8751 ]
### Warning: ProtoInterface is unreferenced in ProtoBody with no corresponding IS/connect/@protoField
exposedField MFVec3f positionKeyValue [ 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 ]
### Warning: ProtoInterface is unreferenced in ProtoBody with no corresponding IS/connect/@protoField
exposedField MFFloat orientationKey [ 0.0 0.25 0.5 0.750 1 ]
### Warning: ProtoInterface is unreferenced in ProtoBody with no corresponding IS/connect/@protoField
exposedField MFRotation orientationKeyValue [ 0 1 0 0 0 1 0 -1.57 0 1 0 -3.14 0 1 0 -4.71 0 1 0 -6.28 ]
### Warning: ProtoInterface is unreferenced in ProtoBody with no corresponding IS/connect/@protoField
exposedField SFTime orbitTime 90
] {
DEF Way Transform {
children [
Transform {
rotation 1 0 0 1.395
children [
DEF FishTransform Transform {
scale IS fishScale
children [
Shape {
appearance Appearance {
material DEF FishColor Material {
diffuseColor IS fishColor
}
}
geometry DEF FishBodyExtrusion Extrusion {
creaseAngle 0.57
crossSection [ -0.1 1.0 0.1 1 0.5 0.5 0.5 -0.5 0.1 -1 -0.1 -1 -0.5 -0.5 -0.5 0.5 -0.1 1 ]
scale [ 0.03 0.03 0.05 0.3 0.05 0.45 0.1 0.5 0.05 0.45 0.05 0.2 0.03 0.4 ]
spine [ 0 1 0 0 0.8 0 0 0.6 0 0 0.5 0 0 0.3 0 0 0.2 0 0 0 0 ]
}
}
DEF ColorTimer TimeSensor {
cycleInterval 10
loop TRUE
startTime 1
}
DEF ColorValue ColorInterpolator {
key [ 0 .33 .67 1 ]
keyValue [ .90 .66 .40 .47 .40 .90 .40 .90 .46 .90 .66 .40 ]
}
Shape {
appearance DEF FinSkin Appearance {
material DEF FinColor Material {
transparency 0.2
diffuseColor IS finColor
}
}
}
Transform {
translation 0.015 0.8 -0.2
children [
DEF Eye Shape {
appearance Appearance {
material Material {
diffuseColor 0.5 0.5 0.5
shininess 1
specularColor 0.3 0.3 0.3
}
}
geometry Sphere {
radius 0.03
}
}
]
}
Transform {
translation -0.015 0.8 -0.2
children [
USE Eye
]
}
Transform {
scale 1 1 0.7
translation 0 0.98 0
children [
USE Eye
]
}
DEF LeftPectoral Transform {
translation 0.04 0.4 0.3
children [
Shape {
appearance USE FinSkin
geometry IndexedFaceSet {
coordIndex [ 0 1 2 -1 ]
solid FALSE
coord Coordinate {
point [ 0 0 0 0 0.2 0 0.2 0.1 0 ]
}
}
}
]
}
DEF RightPectoral Transform {
translation -0.04 0.4 0.3
children [
Shape {
appearance USE FinSkin
geometry IndexedFaceSet {
coordIndex [ 0 1 2 -1 ]
solid FALSE
coord Coordinate {
point [ 0 0 0 0 0.2 0 -0.2 0.1 0 ]
}
}
}
]
}
]
ROUTE ColorTimer.fraction_changed TO ColorValue.set_fraction
ROUTE ColorValue.value_changed TO FishColor.diffuseColor
}
]
}
]
}
}
# ====================
Viewpoint {
description "CircleFish with ColorInterpolator"
orientation 0 1 0 1.5708
position 2 0 0.5
}
CircleFish {
}