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

  1. #VRML V2.0 utf8
  2.  
  3. WorldInfo {
  4.   info    [ "Created in CosmoWorlds",
  5.         "Packaged by CosmoPackage" ]
  6. }
  7. DEF terrainInline Transform {
  8.   children    Inline {
  9.     url    "terrainInline.wrl"
  10.     bboxCenter    -0.198013 104.115 -9.964
  11.     bboxSize    982.72 208.231 864.806
  12.   }
  13.  
  14. }
  15. DEF oceanInline Transform {
  16.   children    Inline {
  17.     url    "oceanInline.wrl"
  18.     bboxCenter    212.185 1.825 118.143
  19.     bboxSize    7377.15 0 7377.15
  20.   }
  21.  
  22. }
  23. DEF background Transform {
  24.   children    Background {
  25.     groundAngle    1.01
  26.     groundColor    [ 0.1 0.1 0.09,
  27.           0.48 0.48 0.45 ]
  28.     skyAngle    [ 0.05, 0.1, 1, 1.57 ]
  29.     skyColor    [ 1 1 0,
  30.           1 1 0.5,
  31.           0.125 0.125 0.5,
  32.           0.3 0.3 0.55,
  33.           0.64 0.73 0.84 ]
  34.   }
  35.  
  36.   translation    139.537 161.86 -16.62
  37.   rotation    0 0 1  0
  38. }
  39. DEF Light1 DirectionalLight {
  40.   direction    -0.301666 -0.945287 0.124226
  41. }
  42. DEF IslandSound Sound {
  43.   source    DEF cricketClip AudioClip {
  44.     url    "crickets.wav"
  45.     loop    TRUE
  46.     startTime    1
  47.   }
  48.  
  49.   location    0 10 0
  50.   direction    0 0 1
  51.   minFront    400
  52.   maxFront    550
  53.   minBack    400
  54.   maxBack    550
  55.   spatialize    FALSE
  56. }
  57. DEF viewpoints Transform {
  58.   children    [
  59.     DEF VP2 Viewpoint {
  60.       position    -955.266 285.332 1151.13
  61.       orientation    -0.0300014 -0.995425 -0.0907165  0.699859
  62.       fieldOfView    0.785398
  63.       description    "full view"
  64.     }
  65.     DEF VP1 Viewpoint {
  66.       position    5.18484 194.517 158.337
  67.       orientation    -0.0321899 -0.995106 -0.0934276  0.703927
  68.       fieldOfView    0.785398
  69.       description    "pond view"
  70.     }
  71.   ]
  72. }
  73. Transform {
  74.   children    DEF waveSound Sound {
  75.     source    DEF waveclip AudioClip {
  76.       url    "waves.wav"
  77.       loop    TRUE
  78.       startTime    1
  79.     }
  80.  
  81.     location    0 0 -34.8102
  82.     direction    0 0 1
  83.     minFront    56.4
  84.     maxFront    564
  85.     minBack    56.4
  86.     maxBack    564
  87.   }
  88.  
  89.   translation    0 -27.1887 0
  90.   scale    1 0.152271 1
  91. }
  92. Inline {
  93.   url    "pondInline.wrl"
  94.   bboxCenter    150.062 160.882 -12.6917
  95.   bboxSize    126.917 0.867004 98.9718
  96. }
  97. DEF upperStream Transform {
  98.   children    Shape {
  99.     appearance    Appearance {
  100.       material    Material {
  101.     ambientIntensity    0.164765
  102.     diffuseColor    0.285566 0.305877 0.382979
  103.     specularColor    0 0 0
  104.     emissiveColor    0 0 0
  105.     shininess    0.2
  106.     transparency    0
  107.       }
  108.  
  109.       texture    NULL
  110.  
  111.       textureTransform    NULL
  112.  
  113.     }
  114.  
  115.     geometry    IndexedFaceSet {
  116.       coord    Coordinate {
  117.     point    [ 59.5969 146.807 79.907,
  118.           113.073 161.273 26.3747,
  119.           99.4099 161.273 7.55858,
  120.           36.6707 146.807 82.1189,
  121.           25.3372 146.242 149.649,
  122.           37.5961 146.242 148.299 ]
  123.       }
  124.  
  125.       color    NULL
  126.  
  127.       coordIndex    [ 0, 1, 2, 3, -1, 0, 1, 2,
  128.             3, -1, 0, 3, 4, 5, -1, 0,
  129.             3, 4, 5, -1 ]
  130.       colorIndex    [  ]
  131.       normal    NULL
  132.  
  133.       ccw    TRUE
  134.       solid    TRUE
  135.       convex    TRUE
  136.       creaseAngle    0.5
  137.     }
  138.  
  139.   }
  140.  
  141. }
  142. DEF waterFall Transform {
  143.   children    [
  144.     DEF DefaultTouchSensor TouchSensor {
  145.     }
  146.     Shape {
  147.       appearance    Appearance {
  148.     material    Material {
  149.       ambientIntensity    0.0631015
  150.       diffuseColor    0.933709 0.950282 1
  151.       specularColor    0 0 0
  152.       emissiveColor    0.489362 0.489362 0.489362
  153.       shininess    0.2
  154.       transparency    0
  155.     }
  156.  
  157.     texture    ImageTexture {
  158.       url    "falltex.gif"
  159.     }
  160.  
  161.     textureTransform    TextureTransform {
  162.       translation    0 0
  163.       rotation    0
  164.       scale    23.1188 3.63558
  165.       center    0 0
  166.     }
  167.  
  168.       }
  169.  
  170.       geometry    IndexedFaceSet {
  171.     coord    Coordinate {
  172.       point    [ 32.7671 90.6663 183.129,
  173.             37.5961 146.242 148.299,
  174.             25.3372 146.242 149.649,
  175.             19.9931 90.6663 188.953,
  176.             17.6137 23.8628 219.136,
  177.             35.1548 23.8628 215.602 ]
  178.     }
  179.  
  180.     color    NULL
  181.  
  182.     coordIndex    [ 0, 1, 2, 3, -1, 0, 1, 2,
  183.           3, -1, 4, 5, 0, 3, -1, 4,
  184.           5, 0, 3, -1 ]
  185.     colorIndex    [  ]
  186.     normal    NULL
  187.  
  188.     texCoord    TextureCoordinate {
  189.       point    [ 0.5 0.686985,
  190.             0.5 0.812528,
  191.             0.5 0.812528,
  192.             0.5 0.686985,
  193.             0.518809 0.698483,
  194.             0.52581 0.784354,
  195.             0.5 0.577903,
  196.             0.5 0.577903,
  197.             0.515802 0.583924,
  198.             0.514255 0.662021 ]
  199.     }
  200.  
  201.     texCoordIndex    [ 0, 1, 2, 3, -1, 4, 5, 2,
  202.           3, -1, 6, 7, 0, 3, -1, 6,
  203.           8, 9, 3, -1 ]
  204.     ccw    TRUE
  205.     solid    TRUE
  206.     convex    TRUE
  207.     creaseAngle    0.5
  208.       }
  209.  
  210.     }
  211.   ]
  212.   center    27.6049 85.0523 183.717
  213. }
  214. DEF lowerStream Transform {
  215.   children    Shape {
  216.     appearance    Appearance {
  217.       material    Material {
  218.     ambientIntensity    0.152091
  219.     diffuseColor    0.309363 0.331367 0.414894
  220.     specularColor    0.106383 0.106383 0.106383
  221.     emissiveColor    0 0 0
  222.     shininess    0.2
  223.     transparency    0
  224.       }
  225.  
  226.       texture    NULL
  227.  
  228.       textureTransform    NULL
  229.  
  230.     }
  231.  
  232.     geometry    IndexedFaceSet {
  233.       coord    Coordinate {
  234.     point    [ 35.1548 23.8628 215.602,
  235.           17.6137 23.8628 219.136,
  236.           19.496 12.9992 335.064,
  237.           43.0546 13.2699 334.429,
  238.           -4.54715 0 406.479,
  239.           39.654 0 402.414 ]
  240.       }
  241.  
  242.       color    NULL
  243.  
  244.       coordIndex    [ 0, 1, 2, 3, -1, 2, 4, 5,
  245.             3, -1, 0, 1, 2, 4, 5, 3,
  246.             -1 ]
  247.       colorIndex    [  ]
  248.       normal    NULL
  249.  
  250.       ccw    TRUE
  251.       solid    TRUE
  252.       convex    TRUE
  253.       creaseAngle    0.5
  254.     }
  255.  
  256.   }
  257.  
  258. }
  259. DEF upstreamSoundGroup Transform {
  260.   children    DEF upperStreamSound Sound {
  261.     source    DEF streamClip AudioClip {
  262.       url    "stream.wav"
  263.       loop    TRUE
  264.       startTime    1
  265.     }
  266.  
  267.     location    0 0 0
  268.     direction    0.00145872 -0.0827781 0.996567
  269.     minFront    50
  270.     maxFront    70
  271.     minBack    50
  272.     maxBack    70
  273.   }
  274.  
  275.   translation    55.3121 147.58 76.6578
  276.   rotation    0.208855 -0.977176 0.0388052  0.45149
  277.   scale    0.709871 0.709871 1.77187
  278.   scaleOrientation    6.50199e-06 5.80232e-06 -1  0.00390625
  279. }
  280. DEF loStreamSoundGroup Transform {
  281.   children    Transform {
  282.     children    DEF lowerStreamSound Sound {
  283.       source    USE streamClip
  284.  
  285.       location    0 0 0
  286.       direction    0 0 1
  287.       minFront    50
  288.       maxFront    70
  289.       minBack    50
  290.       maxBack    70
  291.     }
  292.  
  293.     translation    31.6566 15.2535 311.177
  294.     rotation    0 0 1  0
  295.     scale    0.728855 0.728856 1.87075
  296.   }
  297.  
  298. }
  299. DEF waterfallSoundGroup Transform {
  300.   children    [
  301.     DEF waterfallFar Sound {
  302.       source    DEF Sound1clip AudioClip {
  303.     url    "wfRumble.wav"
  304.     loop    TRUE
  305.     startTime    1
  306.       }
  307.  
  308.       location    0 0 0
  309.       direction    0 0 1
  310.       minFront    60
  311.       maxFront    140
  312.       minBack    20
  313.       maxBack    50
  314.     }
  315.     DEF waterfallNear Sound {
  316.       source    DEF wfnear AudioClip {
  317.     url    "wfSpray.wav"
  318.     loop    TRUE
  319.     startTime    1
  320.       }
  321.  
  322.       location    0 0 0
  323.       direction    0 0 1
  324.       minFront    20
  325.       maxFront    70
  326.       minBack    10
  327.       maxBack    40
  328.     }
  329.   ]
  330.   translation    17.5772 29.0766 196.069
  331.   rotation    -0.994789 0.0966599 0.0324386  0.650729
  332.   scale    1.70049 2.86545 1.28977
  333.   scaleOrientation    0 0 1  0
  334. }
  335. DEF flyNav NavigationInfo {
  336.   avatarSize    [ 1, 4, 4 ]
  337.   type    "FLY"
  338. }
  339. DEF walkNav NavigationInfo {
  340.   avatarSize    [ 1, 4, 4 ]
  341. }
  342. DEF mouthView Viewpoint {
  343.   position    -6.7292 7.27252 402.905
  344.   orientation    0.950366 -0.273122 -0.149024  0.227894
  345.   fieldOfView    0.785398
  346.   description    "streamMouth"
  347. }
  348. DEF wfBottomVP Viewpoint {
  349.   position    14.6806 25.1763 237.38
  350.   orientation    0.989553 -0.0363016 -0.139527  0.893961
  351.   fieldOfView    1.5
  352.   description    "waterfallBottom"
  353. }
  354. DEF wfTopVP Viewpoint {
  355.   position    31.3286 181.273 131.992
  356.   orientation    0.197257 0.853055 0.483101  3.39174
  357.   fieldOfView    0.785398
  358.   description    "waterfallTop"
  359. }
  360. DEF overviewVP Viewpoint {
  361.   position    393.936 592.529 260.958
  362.   orientation    -0.454275 0.770076 0.447903  1.48731
  363.   fieldOfView    0.785398
  364.   description    "overview"
  365. }
  366. ROUTE mouthView.isBound TO walkNav.set_bind
  367. ROUTE wfBottomVP.isBound TO walkNav.set_bind
  368.