home *** CD-ROM | disk | FTP | other *** search
/ VRML Tools for 3D Cyberspace / VRML_Tools_For_3D_Cyberspace.iso / amber / models / sample.wrl < prev    next >
Text File  |  1996-07-01  |  1KB  |  68 lines

  1. #VRML V1.0 ascii
  2.  
  3. Separator {
  4.     Separator {            # Simple track-light geometry:
  5.     Translation { translation 0 4 0 }
  6.     Separator {
  7.         Material { emissiveColor 0.1 0.3 0.3 }
  8.         Cube {
  9.         width   0.1
  10.         height  0.1
  11.         depth   4
  12.         }
  13.     }
  14.     Rotation { rotation 0 1 0  1.57079 }
  15.     Separator {
  16.         Material { emissiveColor 0.3 0.1 0.3 }
  17.         Cylinder {
  18.         radius  0.1
  19.         height  .2
  20.         }
  21.     }
  22.     Rotation { rotation -1 0 0  1.57079 }
  23.     Separator {
  24.         Material { emissiveColor 0.3 0.3 0.1 }
  25.         Rotation { rotation 1 0 0  1.57079 }
  26.         Translation { translation 0 -.2 0 }
  27.         Cone {
  28.         height  .4
  29.         bottomRadius .2
  30.         }
  31.         Translation { translation 0 .4 0 }
  32.         Cylinder {
  33.         radius  0.02
  34.         height  .4
  35.         }
  36.     }
  37.     }
  38.     SpotLight {            # Light from above
  39.     location 0 4 0
  40.     direction 0 -1 0
  41.     intensity       0.9
  42.     cutOffAngle     0.7
  43.     }
  44.     Separator {            # Wall geometry; just three flat polygons
  45.     Coordinate3 {
  46.         point [
  47.            -2 0 -2, -2 0 2, 2 0 2, 2 0 -2,
  48.            -2 4 -2, -2 4 2, 2 4 2, 2 4 -2]
  49.     }
  50.     IndexedFaceSet {
  51.         coordIndex [ 0, 1, 2, 3, -1,
  52.             0, 4, 5, 1, -1,
  53.             0, 3, 7, 4, -1
  54.             ]
  55.     }
  56.     }
  57.     WWWAnchor {            # A hyperlinked cow:
  58.     name "http://www.foo.edu/CowProject/AboutCows.html"
  59.  
  60.     Separator {
  61.         Translation { translation 0 1 0 }
  62.         WWWInline {        # Reference another object
  63.         name "http://www.foo.edu/3DObjects/cow.wrl"
  64.         }
  65.     }
  66.     }
  67. }
  68.