#VRML V2.0 utf8 ## ##@* layer example ##@ extern #@extern @vr/extern/blaxxun/Layer3D.wrl ##@ layer DEF layer Layer3D { depth -30 translation 0.10 0.0 size 0.8 0.9 background Background { skyColor [ 1 1 0 ] } viewpoint Viewpoint { position 0 0 10 } children [ DEF inline Inline { url "@dlp.wrl" } Transform { translation -5 2 0 children [ DEF touch TouchSensor { } Shape { geometry Sphere { } appearance Appearance { texture ImageTexture { url "@logo.gif" } } } ##@ script DEF script Script { directOutput TRUE field SFNode inline USE inline field SFInt32 i 0 field MFString urls [ "@vr-web3d-logo.wrl" "@vr-web3d-transform.wrl" "@vr-web3d-x-dlp.wrl" ] eventIn SFTime touch url "vrmlscript: function touch(value) { if (i >= urls.length) i = 0; inline.url = urls[i++]; } " } ]} ] ROUTE touch.touchTime TO script.touch } ##@ background Background { skyColor [ 1 0 0 ] } Viewpoint { position 0 0 10 } ##