home *** CD-ROM | disk | FTP | other *** search
/ Late Night VRML 2.0 with Java CD-ROM / code.zip / Ch11 / diagram / ellipsoidSound.wrl < prev    next >
Text File  |  1997-03-31  |  2KB  |  88 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 background Transform {
  21.   children    Background {
  22.     skyColor    1 1 1
  23.   }
  24.  
  25.   translation    26 -1.72 1.9
  26. }
  27. DEF ellipsoidSoundDiagram Transform {
  28.   children    [
  29.     DEF soundXForm Transform {
  30.       children    DEF demoSound debugSound {
  31.     direction    0 0 1
  32.     location    0 0 0
  33.     maxBack    6
  34.     maxFront    30
  35.     minBack    2
  36.     minFront    10
  37.     source    DEF Sound1clip AudioClip {
  38.       url    "forest.wav"
  39.       loop    TRUE
  40.       startTime    1
  41.     }
  42.  
  43.       }
  44.  
  45.       translation    0 0 0
  46.     }
  47.     DEF soundPoint Transform {
  48.       children    Shape {
  49.     appearance    Appearance {
  50.       material    Material {
  51.         ambientIntensity    0
  52.         diffuseColor    0 0 0
  53.         specularColor    0.587 0.596 0.582
  54.         emissiveColor    0 0 0
  55.         shininess    0.0816
  56.         transparency    0
  57.       }
  58.  
  59.       texture    NULL
  60.  
  61.       textureTransform    NULL
  62.  
  63.     }
  64.  
  65.     geometry    Sphere {
  66.       radius    1
  67.     }
  68.  
  69.       }
  70.  
  71.       translation    0 0 0
  72.       rotation    0 0 1  0
  73.       scale    1 1 1
  74.       scaleOrientation    0 0 1  0
  75.     }
  76.   ]
  77. }
  78. DEF VP1 Viewpoint {
  79.   position    -52.3 1.11 2.08
  80.   orientation    0.0117 1 0.0113  4.52
  81.   fieldOfView    0.785
  82.   description    "entry"
  83. }
  84. DEF navInfo NavigationInfo {
  85.   avatarSize    [ 5, 20, 10 ]
  86.   type    "EXAMINE"
  87. }
  88.