anim_scale_0.wrl source
#VRML V2.0 utf8

EXTERNPROTO PositionInterpolator2D [
eventIn SFFloat set_fraction
exposedField MFFloat key
exposedField MFVec2f keyValue
eventOut SFVec2f value_changed
] "proto_pi2d.wrl"

Viewpoint {
position -5 0 5
orientation 0 -1 0 0.78
description "initial"
}

NavigationInfo {
type "EXAMINE"
}

# 背景
Background {
skyColor 1 1 1
}

# 箱
Shape {
appearance Appearance {
material Material {}
texture ImageTexture {
url "map.gif"
}
textureTransform DEF TT TextureTransform {
center -0.5 -0.5
}
}
geometry Box {}
}

# タイムセンサー
DEF TiS TimeSensor {
cycleInterval 25
loop TRUE
}

# 拡大縮小アニメーション
DEF PI2D PositionInterpolator2D {
key [ 0.0 0.25 0.5 0.75 1.0 ]
keyValue [
2.6 2.6
5.0 5.0
2.6 2.6
0.2 0.2
2.6 2.6
]
}

ROUTE TiS.fraction_changed TO PI2D.set_fraction
ROUTE PI2D.value_changed TO TT.scale