home *** CD-ROM | disk | FTP | other *** search
/ Using VRML (Special Edition) / Special_Edition_Using_VRML_CDROM_Que_1996.iso / webpages / objects / chap22 / farm / 01eg05.wrl < prev    next >
Text File  |  1995-12-22  |  1KB  |  44 lines

  1. #VRML V1.0 ascii
  2.  
  3. # A farm scene: grass, trees, a barn and a truck
  4. #
  5. # Created by Bernie Roehl, November 1995
  6. #
  7. # Barn and truck are from the Mesh Mart
  8. # Single tree was generated by InWorld's TreeTool
  9. # Forest was generated by forest.exe
  10.  
  11. Separator {
  12.     DEF Forest Separator {
  13.         Transform { translation 2.5 0 2.5 }
  14.         WWWInline { name "forest.wrl" }
  15.     }
  16.     DEF Grass Separator {
  17.         Texture2 { filename "grass01.gif" }
  18.         TextureCoordinate2 { point [ 0 0, 1 0, 1 1, 0 1 ] }
  19.         Texture2Transform { scaleFactor 25 25 }
  20.         Material { diffuseColor 0 1 0 }
  21.         Coordinate3 { point [ 0 0 0, 50 0 0, 50 0 50, 0 0 50 ] }
  22.         IndexedFaceSet {
  23.             coordIndex [ 0, 1, 2, 3, -1 ]
  24.             textureCoordIndex [ 0, 1, 2, 3, -1 ]
  25.         }
  26.     }
  27.     DEF Barn Separator {
  28.         Transform {
  29.             translation 10 3.2 10
  30.             rotation 1 0 0 -1.5708
  31.             scaleFactor .02 .02 .02
  32.         }
  33.         WWWInline { name "barn.wrl" }
  34.     }
  35.     DEF Truck Separator {
  36.         Transform {
  37.             translation 10 1.6 25
  38.             rotation 1 0 0 -1.5708
  39.             scaleFactor .015 .015 .015
  40.         }
  41.         WWWInline { name "semi.wrl" }
  42.     }
  43. }
  44.