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

  1. #VRML V2.0 utf8
  2. #Example 11.3 - GIF89a Transparency
  3. NavigationInfo {
  4.   type EXAMINE
  5. }
  6. Viewpoint {
  7.   position   0 0 5
  8.   orientation       0 0 1  0
  9.   fieldOfView       0.785398
  10. }
  11. Group {
  12.   children     [
  13.     Shape {
  14.       appearance      Appearance {
  15.         material      Material {
  16.           ambientIntensity  0.2
  17.           diffuseColor      0.8 0.8 0.8
  18.         }
  19.         texture      ImageTexture {
  20.           url   "tree-1.gif"
  21.         }
  22.       }
  23.       geometry  IndexedFaceSet {
  24.         coord   Coordinate {
  25.         point  [ -1 -1 0,
  26.                   1 -1 0,
  27.                   1 1 0,
  28.                  -1 1 0 ]
  29.         }
  30.         coordIndex   [ 0, 1, 2, 3, -1 ]
  31.       }
  32.     }
  33.     Transform {
  34.       children    Shape {
  35.       appearance      Appearance {
  36.         material      Material {
  37.           ambientIntensity  0.2
  38.           diffuseColor      0.8 0.2 0.1
  39.         }
  40.       }
  41.         geometry    Box {
  42.         }
  43.       }
  44.       translation   0 0 -3
  45.     }
  46.   ]
  47. }
  48. #EOF
  49.