home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Late Night VRML 2.0 with Java CD-ROM
/
code.zip
/
Ch11
/
waterfall
/
waterfall.wrl
< prev
next >
Wrap
Text File
|
1997-03-30
|
7KB
|
368 lines
#VRML V2.0 utf8
WorldInfo {
info [ "Created in CosmoWorlds",
"Packaged by CosmoPackage" ]
}
DEF terrainInline Transform {
children Inline {
url "terrainInline.wrl"
bboxCenter -0.198013 104.115 -9.964
bboxSize 982.72 208.231 864.806
}
}
DEF oceanInline Transform {
children Inline {
url "oceanInline.wrl"
bboxCenter 212.185 1.825 118.143
bboxSize 7377.15 0 7377.15
}
}
DEF background Transform {
children Background {
groundAngle 1.01
groundColor [ 0.1 0.1 0.09,
0.48 0.48 0.45 ]
skyAngle [ 0.05, 0.1, 1, 1.57 ]
skyColor [ 1 1 0,
1 1 0.5,
0.125 0.125 0.5,
0.3 0.3 0.55,
0.64 0.73 0.84 ]
}
translation 139.537 161.86 -16.62
rotation 0 0 1 0
}
DEF Light1 DirectionalLight {
direction -0.301666 -0.945287 0.124226
}
DEF IslandSound Sound {
source DEF cricketClip AudioClip {
url "crickets.wav"
loop TRUE
startTime 1
}
location 0 10 0
direction 0 0 1
minFront 400
maxFront 550
minBack 400
maxBack 550
spatialize FALSE
}
DEF viewpoints Transform {
children [
DEF VP2 Viewpoint {
position -955.266 285.332 1151.13
orientation -0.0300014 -0.995425 -0.0907165 0.699859
fieldOfView 0.785398
description "full view"
}
DEF VP1 Viewpoint {
position 5.18484 194.517 158.337
orientation -0.0321899 -0.995106 -0.0934276 0.703927
fieldOfView 0.785398
description "pond view"
}
]
}
Transform {
children DEF waveSound Sound {
source DEF waveclip AudioClip {
url "waves.wav"
loop TRUE
startTime 1
}
location 0 0 -34.8102
direction 0 0 1
minFront 56.4
maxFront 564
minBack 56.4
maxBack 564
}
translation 0 -27.1887 0
scale 1 0.152271 1
}
Inline {
url "pondInline.wrl"
bboxCenter 150.062 160.882 -12.6917
bboxSize 126.917 0.867004 98.9718
}
DEF upperStream Transform {
children Shape {
appearance Appearance {
material Material {
ambientIntensity 0.164765
diffuseColor 0.285566 0.305877 0.382979
specularColor 0 0 0
emissiveColor 0 0 0
shininess 0.2
transparency 0
}
texture NULL
textureTransform NULL
}
geometry IndexedFaceSet {
coord Coordinate {
point [ 59.5969 146.807 79.907,
113.073 161.273 26.3747,
99.4099 161.273 7.55858,
36.6707 146.807 82.1189,
25.3372 146.242 149.649,
37.5961 146.242 148.299 ]
}
color NULL
coordIndex [ 0, 1, 2, 3, -1, 0, 1, 2,
3, -1, 0, 3, 4, 5, -1, 0,
3, 4, 5, -1 ]
colorIndex [ ]
normal NULL
ccw TRUE
solid TRUE
convex TRUE
creaseAngle 0.5
}
}
}
DEF waterFall Transform {
children [
DEF DefaultTouchSensor TouchSensor {
}
Shape {
appearance Appearance {
material Material {
ambientIntensity 0.0631015
diffuseColor 0.933709 0.950282 1
specularColor 0 0 0
emissiveColor 0.489362 0.489362 0.489362
shininess 0.2
transparency 0
}
texture ImageTexture {
url "falltex.gif"
}
textureTransform TextureTransform {
translation 0 0
rotation 0
scale 23.1188 3.63558
center 0 0
}
}
geometry IndexedFaceSet {
coord Coordinate {
point [ 32.7671 90.6663 183.129,
37.5961 146.242 148.299,
25.3372 146.242 149.649,
19.9931 90.6663 188.953,
17.6137 23.8628 219.136,
35.1548 23.8628 215.602 ]
}
color NULL
coordIndex [ 0, 1, 2, 3, -1, 0, 1, 2,
3, -1, 4, 5, 0, 3, -1, 4,
5, 0, 3, -1 ]
colorIndex [ ]
normal NULL
texCoord TextureCoordinate {
point [ 0.5 0.686985,
0.5 0.812528,
0.5 0.812528,
0.5 0.686985,
0.518809 0.698483,
0.52581 0.784354,
0.5 0.577903,
0.5 0.577903,
0.515802 0.583924,
0.514255 0.662021 ]
}
texCoordIndex [ 0, 1, 2, 3, -1, 4, 5, 2,
3, -1, 6, 7, 0, 3, -1, 6,
8, 9, 3, -1 ]
ccw TRUE
solid TRUE
convex TRUE
creaseAngle 0.5
}
}
]
center 27.6049 85.0523 183.717
}
DEF lowerStream Transform {
children Shape {
appearance Appearance {
material Material {
ambientIntensity 0.152091
diffuseColor 0.309363 0.331367 0.414894
specularColor 0.106383 0.106383 0.106383
emissiveColor 0 0 0
shininess 0.2
transparency 0
}
texture NULL
textureTransform NULL
}
geometry IndexedFaceSet {
coord Coordinate {
point [ 35.1548 23.8628 215.602,
17.6137 23.8628 219.136,
19.496 12.9992 335.064,
43.0546 13.2699 334.429,
-4.54715 0 406.479,
39.654 0 402.414 ]
}
color NULL
coordIndex [ 0, 1, 2, 3, -1, 2, 4, 5,
3, -1, 0, 1, 2, 4, 5, 3,
-1 ]
colorIndex [ ]
normal NULL
ccw TRUE
solid TRUE
convex TRUE
creaseAngle 0.5
}
}
}
DEF upstreamSoundGroup Transform {
children DEF upperStreamSound Sound {
source DEF streamClip AudioClip {
url "stream.wav"
loop TRUE
startTime 1
}
location 0 0 0
direction 0.00145872 -0.0827781 0.996567
minFront 50
maxFront 70
minBack 50
maxBack 70
}
translation 55.3121 147.58 76.6578
rotation 0.208855 -0.977176 0.0388052 0.45149
scale 0.709871 0.709871 1.77187
scaleOrientation 6.50199e-06 5.80232e-06 -1 0.00390625
}
DEF loStreamSoundGroup Transform {
children Transform {
children DEF lowerStreamSound Sound {
source USE streamClip
location 0 0 0
direction 0 0 1
minFront 50
maxFront 70
minBack 50
maxBack 70
}
translation 31.6566 15.2535 311.177
rotation 0 0 1 0
scale 0.728855 0.728856 1.87075
}
}
DEF waterfallSoundGroup Transform {
children [
DEF waterfallFar Sound {
source DEF Sound1clip AudioClip {
url "wfRumble.wav"
loop TRUE
startTime 1
}
location 0 0 0
direction 0 0 1
minFront 60
maxFront 140
minBack 20
maxBack 50
}
DEF waterfallNear Sound {
source DEF wfnear AudioClip {
url "wfSpray.wav"
loop TRUE
startTime 1
}
location 0 0 0
direction 0 0 1
minFront 20
maxFront 70
minBack 10
maxBack 40
}
]
translation 17.5772 29.0766 196.069
rotation -0.994789 0.0966599 0.0324386 0.650729
scale 1.70049 2.86545 1.28977
scaleOrientation 0 0 1 0
}
DEF flyNav NavigationInfo {
avatarSize [ 1, 4, 4 ]
type "FLY"
}
DEF walkNav NavigationInfo {
avatarSize [ 1, 4, 4 ]
}
DEF mouthView Viewpoint {
position -6.7292 7.27252 402.905
orientation 0.950366 -0.273122 -0.149024 0.227894
fieldOfView 0.785398
description "streamMouth"
}
DEF wfBottomVP Viewpoint {
position 14.6806 25.1763 237.38
orientation 0.989553 -0.0363016 -0.139527 0.893961
fieldOfView 1.5
description "waterfallBottom"
}
DEF wfTopVP Viewpoint {
position 31.3286 181.273 131.992
orientation 0.197257 0.853055 0.483101 3.39174
fieldOfView 0.785398
description "waterfallTop"
}
DEF overviewVP Viewpoint {
position 393.936 592.529 260.958
orientation -0.454275 0.770076 0.447903 1.48731
fieldOfView 0.785398
description "overview"
}
ROUTE mouthView.isBound TO walkNav.set_bind
ROUTE wfBottomVP.isBound TO walkNav.set_bind