home *** CD-ROM | disk | FTP | other *** search
/ VRML Programmer's Library by Jamsa Press / VRML Programmer's Library by Jamsa Press.iso / Chap09 / tchradio.wrl < prev   
Encoding:
Text File  |  1997-02-12  |  1017 b   |  47 lines

  1. #VRML V2.0 utf8
  2. #tchradio.wrl
  3.  
  4. Background                           #  dark gray background
  5.   {
  6.      skyColor  .2 .2 .2
  7.   }
  8.  
  9. Viewpoint                            #  set viewpoint 1 unit up y-axis and
  10.   {                                  #    3 units nearer on z-axis
  11.      position  0 1 3
  12.   }
  13.  
  14. Group
  15.   {
  16.      children
  17.        [
  18.           DEF PUSH TouchSensor       #  apply touch sensor trigger to object
  19.             {
  20.             }
  21.           Inline                     #  import "2radio.wrl"
  22.             {
  23.                url
  24.                  [
  25.                     "2radio.wrl"
  26.                  ]
  27.             }
  28.        ]
  29.   }
  30.  
  31. Sound                                #  add sound
  32.   {
  33.      source DEF MUSIC AudioClip      #  apply touch sensor target to audio clip
  34.        {
  35.           description  "music"
  36.           url  "sounds/hmain.wav"
  37.        }
  38.      minFront  10
  39.      maxFront  100
  40.      minBack  .4
  41.      maxBack  10
  42.   }
  43.  
  44. ROUTE PUSH.touchTime TO MUSIC.startTime
  45.  
  46. #tchradio.wrl
  47.