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-rif-interface-image.vr

proto-rif-interface-image.vr (wrl ) [ flux / bitmanagement / cortona / octaga ]


  

image


  

Web3D/VR

#@extern @vr-extern-proto-object-box.wrl PROTO Image [ exposedField SFVec3f scale 1 1 1 exposedField SFColor color 0.3 0.3 0.3 exposedField SFFloat transparency 0 exposedField SFBool touchEnabled FALSE eventOut SFTime touchTime field SFVec2f position 0 0 field SFVec2f size 1 1 exposedField MFString url [] ] { DEF TRANS Transform { scale IS scale children [ Group { children [ DEF TOUCHSENSOR TouchSensor { enabled IS touchEnabled touchTime IS touchTime } Shape { appearance Appearance { material Material { transparency IS transparency emissiveColor IS color diffuseColor 0 0 0 texture ImageTexture { url IS url } } } geometry DEF WINDOWBOX box { } } ] } ] } DEF SCRIPT Script { field SFNode transformNode USE TRANS eventOut SFVec3f set_size field SFVec2f position IS position field SFVec2f size IS size url "vrmlscript: function initialize() { transformNode.translation = new SFVec3f(position.x,position.y,0); set_size = new SFVec3f(size.x,size.y,0.02); } " } ROUTE SCRIPT.set_size TO WINDOWBOX.size }

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