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-annot-text.vr (wrl ) [ flux / bitmanagement / cortona / octaga ]


  Background {
  skyColor 1 1 1
  }
  Transform {
  children [
  Shape{
  
  appearance Appearance {
  material Material {
  diffuseColor 1 0 0
  }
  }
  geometry Text {
  string ["a <include file=kanji-2.txt> B C :; d #&xF202"
         "<include file=kanji-3.txt>"]
  fontStyle FontStyle {
  ##language "ANSI"
  ##language "DEFAULT"
  ##language "SYMBOL"
  ##language "SHIFTJIS"
  language "jp"
  ##language "HANGEUL"
  ##language "HANGUL"
  ##language "GB2312"
  ##language "CHINESEBIG"
  ##language "OEM"
  ##language "JOHAB"
  ##language "HEBREW"
  ##language "ARABIC"
  ##language "GREEK"
  ##language "TURKISH"
  ##language "VIETNAMESE"
  ##language "THAI"
  ##language "EASTEUROPE"
  ##language "RUSSIAN"
  ##language "MAC"
  ##language "BALTIC"
  }
  }
  }
  
  DEF xswitch Switch {
  whichChoice -1
  choice [
  Transform {
  translation 2 2 1
  scale 2 2 2
  children [
  Shape {
  geometry Box { size 5 5 1 }
  appearance Appearance {
     material Material { transparency 0.5 }
     texture ImageTexture { url "annot-1.gif" }
     }
  }
  ]
  }
  ]} ## Switch
  
  DEF touch TouchSensor { }
  DEF script Script {
  directOutput TRUE
  eventIn SFBool over
  field SFNode xswitch USE xswitch
  url "javascript:
  function over(v) {
  Browser.print('OK ' + v);
  if (v) xswitch.whichChoice = 0;
  else xswitch.whichChoice = -1;
  }"
  
  }
  ROUTE touch.isOver TO script.over
  ]}
    
  <phrase dir=b turn=0 id=_ level=_ right="haven t~nI seen this~nbefore?"/> 
  <phrase dir=b turn=0 id=_ level=_ left="I am glad~nyou re paying~nattention!!"> 
  <gesture dir=b id=_ level=_ right=0 pause=500/>    
  <gesture dir=b id=_ level=_ left=0 pause=600/>     
  
    
  
[] 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.