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-dialog-vu.vr

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

Web3D/VR

vu

vu


  
  PROTO dialog-vu [ ## "@vr-extern-proto-dialog-vu.wrl" 
  exposedField MFString string [ "AE" ]
  ]{
  Transform {
  translation 0 0 0        
  scale 1 1 1
  children [
  PointLight { location 0 0 5 attenuation 0 0 0 radius 20 } 
  DEF object Transform {
          children [
          Shape { 
          appearance Appearance { 
             material Material {
                  diffuseColor 1 1 1
                  }
          }
          geometry Text { 
                  fontStyle FontStyle {
                          justify "MIDDLE"
                          }
                  string IS string
          }
          }
          ] }
  ] }
  
  

sensor and interpolator


  
  DEF time TimeSensor { cycleInterval 10 loop TRUE enabled TRUE }
  DEF rotation OrientationInterpolator {
  key [ 0 0.25 0.5 0.75 1 ]
  keyValue [ 1 1 0 0, 1 1 0 1.57, 1 1 0 3.14 1 1 0 4.71, 1 1 0 0 ]
  }
  
  

event routing


  
  ROUTE time.fraction TO rotation.fraction
  ROUTE rotation.value TO object.rotation
  } ## end proto
  
  

scene


  
  Background { skyColor [ 0 0 0 ] }
  NavigationInfo { headlight FALSE }
  DEF Viewpoint Viewpoint {position 0 4.5 10}
  
  dialog-vu { string "VU" }
  
  


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