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-browser.vr

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

Web3D/VR

browser object

scene


  Viewpoint {
       description "Default View"
            position 0 0.5 10
              }
  
  Background { skyColor 0.5 0 0 }
  
                
  
  

display


  
  Shape {
     appearance Appearance {
        material Material {
           diffuseColor 1 1 1
        }
     }
     geometry DEF TEXT Text {
        fontStyle FontStyle {
           size 0.5
           justify "MIDDLE"
        }
     }
  }
  
  

timer


  
  DEF TIMER TimeSensor {
     loop TRUE
     startTime 0
     stopTime -1
     cycleInterval 0.1
  }
  
  

script


  
  DEF TEXTCREATOR Script {
     eventIn SFTime ping
     eventOut MFString string
     url "javascript:
        function ping(value,time) {
           browserString = 'Browser: ' + Browser.getName();
           versionString = 'Version: ' + Browser.getVersion();
           urlString = 'URL: ' + Browser.getWorldURL();
           speedString = 'Speed: ' + Browser.getCurrentSpeed();
           frameString = 'Frame Rate: ' + Browser.getCurrentFrameRate() + ' fps';
           string = new MFString(browserString, versionString, urlString, speedString, frameString);
        }
     "
  }
  
  

event routing


  
  ROUTE TIMER.cycleTime TO TEXTCREATOR.ping
  ROUTE TEXTCREATOR.string TO TEXT.string
  


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