home *** CD-ROM | disk | FTP | other *** search
/ Late Night VRML 2.0 with Java CD-ROM / code.zip / Ch11 / island / island.wrl < prev    next >
Text File  |  1997-03-30  |  4KB  |  207 lines

  1. #VRML V2.0 utf8
  2.  
  3. EXTERNPROTO debugSound [
  4.         field        SFVec3f direction 
  5.         field        SFFloat intensity 
  6.         field        SFVec3f location 
  7.         field        SFFloat maxBack 
  8.         field        SFFloat maxFront 
  9.         field        SFFloat minBack 
  10.         field        SFFloat minFront 
  11.         field        SFFloat priority 
  12.         field        SFNode source 
  13.         field        SFBool spatialize 
  14.       ]
  15.     "dsp.wrl"
  16. WorldInfo {
  17.   info    [ "Created in CosmoWorlds",
  18.         "Packaged by CosmoPackage" ]
  19. }
  20. DEF terrainInline Transform {
  21.   children    Inline {
  22.     url    "islandTerrain.wrl"
  23.     bboxCenter    -0.2193 104.2 -38.76
  24.     bboxSize    982.7 208.2 816.2
  25.   }
  26.  
  27. }
  28. DEF streamGroup Transform {
  29.   children    [
  30.     DEF streamInline Transform {
  31.       children    Inline {
  32.     url    "streamInline.wrl"
  33.     bboxCenter    44.53 80.75 177.4
  34.     bboxSize    137 161.3 348.7
  35.       }
  36.  
  37.       translation    0 0 0.8643
  38.     }
  39.     DEF upperStreamSoundX Transform {
  40.       children    DEF upperStreamSound Sound {
  41.     source    DEF streamClip AudioClip {
  42.       url    "stream.wav"
  43.       loop    TRUE
  44.       startTime    1
  45.     }
  46.  
  47.     location    0 0 0
  48.     direction    0.1112 0.2668 0.9573
  49.     minFront    40
  50.     maxFront    60
  51.     minBack    40
  52.     maxBack    60
  53.       }
  54.  
  55.       translation    54.21 140.6 73.03
  56.       rotation    0.3002 -0.9499 0.08662  0.7312
  57.       scale    0.8807 0.8807 1.958
  58.       scaleOrientation    -6.538e-08 5.123e-07 -1  0.6245
  59.     }
  60.     DEF lowerStreamSoundX Transform {
  61.       children    DEF lowerStreamSound Sound {
  62.     source    USE streamClip
  63.  
  64.     location    0 0 0
  65.     direction    0.2393 -9.208e-07 0.9709
  66.     minFront    40
  67.     maxFront    60
  68.     minBack    40
  69.     maxBack    60
  70.       }
  71.  
  72.       translation    5.43 64.11 248
  73.       rotation    0.9871 0.1324 0.08977  0.547
  74.       scale    0.9756 0.9756 3.22
  75.       scaleOrientation    -5.665e-05 5.742e-06 -1  0.008735
  76.     }
  77.   ]
  78. }
  79. DEF pondGroup Transform {
  80.   children    [
  81.     DEF pondInline Transform {
  82.       children    Inline {
  83.     url    "pondInline.wrl"
  84.     bboxCenter    150 161 -17.19
  85.     bboxSize    126.9 0.867 98.97
  86.       }
  87.  
  88.     }
  89.     DEF pondSound Sound {
  90.       source    DEF frogClip AudioClip {
  91.     url    "frogs.wav"
  92.     loop    TRUE
  93.     startTime    1
  94.       }
  95.  
  96.       location    149.4 161 -17.85
  97.       direction    0 0 1
  98.       minFront    60
  99.       maxFront    80
  100.       minBack    60
  101.       maxBack    80
  102.     }
  103.   ]
  104.   translation    -4.804 -5.003 0.6177
  105.   scale    1.036 1.036 1.036
  106. }
  107. DEF oceanInline Transform {
  108.   children    Inline {
  109.     url    "oceanInline.wrl"
  110.     bboxCenter    212.2 1.825 118.1
  111.     bboxSize    7377 0 7377
  112.   }
  113.  
  114. }
  115. DEF background Transform {
  116.   children    Background {
  117.     groundAngle    1.01
  118.     groundColor    [ 0.1 0.1 0.09,
  119.           0.48 0.48 0.45 ]
  120.     skyAngle    [ 0.05, 0.1, 1, 1.57 ]
  121.     skyColor    [ 1 1 0,
  122.           1 1 0.5,
  123.           0.125 0.125 0.5,
  124.           0.3 0.3 0.55,
  125.           0.64 0.73 0.84 ]
  126.   }
  127.  
  128.   translation    139.5 161.9 -16.62
  129.   rotation    0 0 1  0
  130. }
  131. DEF Light1 DirectionalLight {
  132.   direction    -0.3017 -0.9453 0.1242
  133. }
  134. DEF IslandSound Sound {
  135.   source    DEF cricketClip AudioClip {
  136.     url    "crickets.wav"
  137.     loop    TRUE
  138.     startTime    1
  139.   }
  140.  
  141.   location    29.95 10 -36.62
  142.   direction    0 0 1
  143.   minFront    335
  144.   maxFront    450
  145.   minBack    335.3
  146.   maxBack    450
  147.   spatialize    FALSE
  148. }
  149. DEF waveSoundGroup Transform {
  150.   children    DEF waveSound Sound {
  151.     source    DEF waveclip AudioClip {
  152.       url    "waves.wav"
  153.       loop    TRUE
  154.       startTime    1
  155.     }
  156.  
  157.     location    0 0 -34.81
  158.     direction    0 0 1
  159.     minFront    480
  160.     maxFront    550
  161.     minBack    480
  162.     maxBack    550
  163.   }
  164.  
  165.   translation    0 -27.19 0
  166.   rotation    0 0 1  0
  167.   scale    1.155 0.1211 1.155
  168. }
  169. DEF flyNav NavigationInfo {
  170.   avatarSize    [ 1, 4, 4 ]
  171.   speed    4
  172.   type    "FLY"
  173. }
  174. DEF walkNav NavigationInfo {
  175.   avatarSize    [ 1, 4, 4 ]
  176.   speed    4
  177. }
  178. DEF viewpoints Transform {
  179.   children    [
  180.     DEF VP2 Viewpoint {
  181.       position    -955.3 285.3 1151
  182.       orientation    -0.03 -0.9954 -0.09072  0.6999
  183.       fieldOfView    0.7854
  184.       description    "full view"
  185.     }
  186.     DEF mouthView Viewpoint {
  187.       position    8.272 7.301 376.5
  188.       orientation    0.8856 -0.3429 -0.3132  0.1979
  189.       fieldOfView    0.7854
  190.       description    "streamMouth"
  191.     }
  192.     DEF VP1 Viewpoint {
  193.       position    127 190.2 -111.8
  194.       orientation    0.04461 0.9886 0.1439  3.27
  195.       fieldOfView    0.7854
  196.       description    "pond view"
  197.     }
  198.     DEF overviewVP Viewpoint {
  199.       position    393.9 592.5 261
  200.       orientation    -0.4543 0.7701 0.4479  1.487
  201.       fieldOfView    0.7854
  202.       description    "overview"
  203.     }
  204.   ]
  205. }
  206. ROUTE mouthView.isBound TO walkNav.set_bind
  207.