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

vr-example-events.vr (wrl /pl ) [ flux / bitmanagement / cortona / octaga ]

events

scene


  
  DEF CAM1 Viewpoint {
          position 0  0  10
          description "Camera 1"
  }
  
  DEF CAM2 Viewpoint {
          position 0  0  12
          description "Camera 2"
  }
  
  NavigationInfo {
          type "EXAMINE"
  }
  
  Background {
          skyColor [
                  0.0  0.2  0.7
                  0.0  0.5  1.0
                  1.0  1.0  1.0
          ]
          skyAngle [ 1.309, 1.571 ]
  
          groundColor [
                  0.1  0.10  0.0
                  0.4  0.25  0.2
                  0.6  0.60  0.6
          ]
          groundAngle [ 1.309, 1.571 ]
  }
  
  

extern


  
  EXTERNPROTO BoxTransform [
          exposedField SFRotation rotation
          exposedField SFVec3f translation
  
          exposedField SFFloat ambientIntensity
          exposedField SFColor diffuseColor
          exposedField SFColor emissiveColor
          exposedField SFFloat shininess
          exposedField SFColor specularColor
          exposedField SFFloat transparency
  
          exposedField SFVec3f size
  ] "protos.wrl"
  
  PROTO TextTransform [
          exposedField SFRotation rotation 0  0  0  0.0
          exposedField SFVec3f textposition 0  0  0
          exposedField MFString text [ "undefined", "text" ]
  ]
  {
          Transform {
                  rotation IS rotation
                  translation IS textposition
                  scale 0.5  0.5  0
                  children [
                          Shape {
                                  appearance Appearance {
                                          material Material {
                                                  diffuseColor 1.0  1.0  1.0
                                          }
                                  }
                                  geometry Text {
                                          string IS text
                                          fontStyle FontStyle {
                                                  family "SERIF"
                                                  style "BOLD"
                                                  justify "MIDDLE"
                                          }
                                  }
                          }
                  ]
          }
  }
  
  PROTO BoardTransform [
          exposedField MFString text [ "Please", "wait", "...." ]
          exposedField SFRotation rotation 0 0 0 0.0
          exposedField SFVec3f translation 0 0 0
  ]
  {
  Transform {
          rotation IS rotation
          translation IS translation
          children [
                  Billboard {
                  axisOfRotation 0 1 0
                  children [
                          BoxTransform {
                                  diffuseColor 0.8 0.8 0.0
                                  translation 0.0 0.0 -0.2
                                  size 8 3 0.1
                          }
                          TextTransform {
                                  text IS text
                                  textposition 0.0  1.0  0.5
                          }
                  ]
                  }
          ]
  }
  }
  
  

root


  
  DEF ROOT Group {
          children [
                  Transform {
                          rotation 0 0 0  0.0
                          translation 0.0  0.0  0.0
                          children [
                                  DEF box BoxTransform {
                                          rotation 0 1 0  0.5
                                          translation 3.0  0.0  0.0
                                          size 1.5 1.5 1.5
                                  }
                                  DEF board BoardTransform {
                                          translation -3.0  3.0 -2.0
                                  }
                          ]
                  }
          ]
  }
  
  

[] 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 _

(C) A. Eliëns 9/8/2006

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.