tree.wrl

 tree.wrl  fence.wrl  table.wrl  stavba.wrl  cafe.wrl  chair.wrl  sibenice.wrl  tank.wrl  u1.wrl  garaz.wrl  tw.wrl 
Zpět Zpět
   1 : #VRML V2.0 utf8
   2 : 
   3 : WorldInfo {
   4 :  info "Author: Martin Petricek"
   5 :  title "Strom"
   6 : }
   7 : 
   8 : DEF Bush Shape {
   9 :  geometry IndexedFaceSet {
  10 :   coord Coordinate {
  11 :    point [-1 1 0,-1 3 0, 1 3 0, 1 1 0]
  12 :   }
  13 :   coordIndex [
  14 :    0 1 2 3 0 -1
  15 :    0 3 2 1 0 -1
  16 :   ]
  17 :  }
  18 :  appearance Appearance {
  19 :   texture ImageTexture {
  20 :    url "tree.gif"
  21 :   }
  22 :  }
  23 : }
  24 : Transform {
  25 :  rotation 0 1 0 1.57
  26 :  children USE Bush
  27 : }
  28 : Transform {
  29 :  scale 0.7 0.7 0.7
  30 :  center 0 0.5 0
  31 :  rotation 0 1 0 0.8
  32 :  children USE Bush
  33 : }
  34 : Transform {
  35 :  scale 0.7 0.7 0.7
  36 :  center 0 0.5 0
  37 :  rotation 0 1 0 -0.7
  38 :  children USE Bush
  39 : }
  40 : Transform {
  41 :  translation 0 0.5 0
  42 :  children Shape {
  43 :   appearance Appearance {
  44 :    material Material {
  45 :     diffuseColor 0.4 0.1 0
  46 :    }
  47 :   }
  48 :   geometry Cylinder {
  49 :    height 1
  50 :    radius 0.07
  51 :    bottom FALSE
  52 :    top FALSE
  53 :   }
  54 :  }
  55 : }