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

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

Web3D/VR

monitor

proto monitor


  
  PROTO monitor [ ## "@vr-extern-monitor.wrl" 
  eventIn MFString message 
  exposedField MFString string []
  
  exposedField SFVec3f scale 1 1 1
  exposedField SFVec3f translation 0 0 0
  exposedField SFRotation rotation 0 0 1 0
  exposedField SFColor text 1 1 1
  eventOut MFString message_changed
  ]{
  Transform {
  scale IS scale
  translation IS translation
  rotation IS rotation
  children [
  Transform {
  translation 0 0 0.1 
  children [
     Shape {
        appearance Appearance {
          material Material { diffuseColor IS text }
          }
        geometry Group { 
        children [ DEF panel Text { string IS string } ]
        }
        }
        ] } ##local transform
  
    Script {
    directOutput TRUE
    eventIn MFString message IS message
    eventOut MFString message_changed IS message_changed
    field SFNode panel USE panel
    url "vrmlscript: 
    function message(value,time) {
         panel.string = value;
         message_changed = value;
         }
    "
    }## end script
  
  ] }  ## end monitor
  }  ## end monitor proto
  
  

scene


  
  monitor {  string "hi" }
  


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