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

web3d-x-color.vr

web3d-x-color.vr (wrl ) [ flux / bitmanagement / cortona / octaga ]

Web3D/VR

scene


  
  NavigationInfo {
     headlight TRUE
     type "EXAMINE"
  }
  
  

indexed face set (with colors)


  
  Transform {
     scale 2 2 2
     children [
        Shape {
           appearance Appearance {
              material Material {
                 diffuseColor 1 1 1
              }
           }
  

geometry


           geometry IndexedFaceSet {
              coord DEF COORD Coordinate {
                 point [ 1 -1 -1, -1 -1 -1, -1 -1 1, 1 -1 1, 1 1 -1, -1 1 -1, -1 1 1, 1 1 1]
              }
              coordIndex [
                 3 2 1 0 -1
                 0 1 5 4 -1
                 1 2 6 5 -1
                 2 3 7 6 -1
                 3 0 4 7 -1
                 4 5 6 7 -1
              ]
              colorPerVertex TRUE
              color Color {
                 color [ 0 0 0, 0 0 1, 0 1 1, 0 1 0, 1 0 0, 1 0 1, 1 1 1, 1 1 0 ]
              }
           }
        }
     ]
  }
  


(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.