home *** CD-ROM | disk | FTP | other *** search
/ Late Night VRML 2.0 with Java CD-ROM / code.zip / Ch10 / 5041106.wrl < prev    next >
Text File  |  1996-12-17  |  769b  |  37 lines

  1. #VRML V2.0 utf8
  2. #Example 11.6 - MovieTexture - startTime from TouchSensor
  3. NavigationInfo {
  4.   type    "EXAMINE"
  5. }
  6. Viewpoint {
  7.   position  -1.995 1.668 4.105
  8.   orientation       -0.639 -0.754 -0.153  0.617
  9.   fieldOfView       0.785
  10. }
  11. Group {
  12.   children  [
  13.     DEF Start_Movie TouchSensor { }
  14.     Shape {
  15.       appearance  Appearance {
  16.         material        Material {
  17.           ambientIntensity      0.25
  18.           diffuseColor  0.8 0.8 0.8
  19.         }
  20.         texture DEF Test_Movie MovieTexture {
  21.           url     "pyro.mps"
  22.         }
  23.       }
  24.       geometry Box { }
  25.     }
  26.     Sound {
  27.       source      USE Test_Movie
  28.       minFront    5
  29.       maxFront    10
  30.       minBack     3
  31.       maxBack     8
  32.     }
  33.   ]
  34. }
  35. ROUTE Start_Movie.touchTime TO Test_Movie.set_startTime
  36. #EOF
  37.