Web3D/VRML
[] readme course preface 1 2 3 4 5 6 7 reference examples resources

talk show tell print

x-logo-layer.vr (wrl ) [ flux / bitmanagement / cortona / octaga ]

layer example

extern


  
  #@extern @vr/extern/blaxxun/Layer3D.wrl
  
  

layer


  DEF layer Layer3D
  { 
     depth -20  
     translation 0.10 0.0
     size 0.8 0.9
  
     background Background { skyColor [ 0 1 1 ] }
     viewpoint Viewpoint { position 0 0 10 }
     children [
                  DEF inline Inline { url "@dlp.wrl" }
                  Transform { translation -5 2 0 
                              children [
                              DEF touch TouchSensor { }
                              Shape {
                                  geometry Sphere { }
                                  appearance Appearance {
                                    texture ImageTexture {
                                          url "@logo.gif"
                                          }
                                  }
                                  }
  

script


                              DEF script Script {
                              directOutput TRUE
                              field SFNode inline USE inline
                              field SFInt32 i 0
                              field MFString urls [ 
                                      "@vr-logo.wrl" "@vr-transform.wrl"
                                   "@vr-x-dlp.wrl"
                                   ]
                              eventIn SFTime touch
                              url "vrmlscript:
                              function touch(value) {
                                  if (i >= urls.length) i = 0;
                                  inline.url = urls[i++]; 
                                  }
                              "
                              }
                          ]}
  
                  ]
                  ROUTE touch.touchTime TO script.touch
  }
  


[] readme course preface 1 2 3 4 5 6 7 reference examples resources
eliens@cs.vu.nl

draft version 0.3 (17/9/2001)