media @ VU
[] readme course preface I 1 2 II 3 4 III 5 6 7 IV 8 9 10 V 11 12 afterthoughts appendix references examples resources _

talk show tell print

proto-object-vu-tree.vr

proto-object-vu-tree.vr (wrl ) [ flux / bitmanagement / cortona / octaga ]


  PROTO Tree [
    exposedField SFVec3f translation      0 0 0
    exposedField SFInt32 size             1
    exposedField SFNode  woodtexture      NULL
    exposedField 
  SFNode  leavetexture     NULL
  ]
  {
    Transform {
      translation IS translation
      children [
        Transform {
          translation 0 1.8 0
          children 
  [
            Shape {
              appearance Appearance {
                material Material {diffuseColor 0 .6 0}
                texture IS leavetexture
              }
              geometry Sphere {
                radius 
  1
              }
            }
          ]
        }
        Shape {
          appearance Appearance {
            material Material {diffuseColor .6 .3 0}
            texture IS woodtexture
          }
          geometry Cylinder 
  {
            radius .2
            height 2
            top    FALSE
            bottom FALSE
          }
        }
      ]
    }
  }
  


(C) A. Eliëns 21/5/2007

You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.