Advanced Uses of VRML2
Anchor { url "mypage.html" # SFString description "local home page" # SFString children [ ....insert your children here..... ] }
Inline Inline { url "inline01.wrl" # SFString bboxSize 1 1 1 # SFVec3f bboxCenter 0 0 0 # SFVec3f }
Here's the Source: WWW1.wrl
DEF TOUCH TouchSensor { },
DEF TIME TimeSensor { cycleInterval 10 },
DEF POS PositionInterpolator { keys [0.0, 1.0] values [ 0 0 0, 23 4 -5] }
Here's the Source: WWW2.wrl
DEF TOGGLE Script { eventIn SFTime toggle eventOut SFInt32 which field SFInt32 thisVal 0 behavior " function toggle() { if (thisVal >= 7 ) thisVal = 0; else thisVal = thisVal+1; which = thisVal; }" },
DEF SWITCH Switch { whichChild 0 choices [ Inline { url "object01.wrl" }, Inline { url "object02.wrl" }, Inline { url "object03.wrl" }, Inline { url "object04.wrl" }, Inline { url "object05.wrl" }, Inline { url "object06.wrl" }, Inline { url "object07.wrl" }, Inline { url "object08.wrl" } ] }
Here's the Source: SwitchScript.wrl
This presentation assumes that you know a little about
Clay Graham - (clay@sgi.com)
VRML Architect