#VRML V2.0 utf8 WorldInfo { title "Bird in House" } EXTERNPROTO BirdHouse [ field SFVec3f scale field SFRotation rotation field SFVec3f translation field MFString daktextuur field MFString hout field MFString url ]"opdracht1.wrl#BirdHouse" EXTERNPROTO Layer2D [ eventIn MFNode addChildren eventIn MFNode removeChildren exposedField MFNode children exposedField SFVec2f translation exposedField SFVec2f size exposedField SFNode background exposedField SFNode viewport ] ["urn:inet:blaxxun.com:node:Layer2D","http://www.blaxxun.com/vrml/protos/nodes.wrl#Layer2D","nodes.wrl#Layer2D"] PROTO Bird [ field SFColor pootkleur 0.282 0.220 0.176 field SFColor vleugelstaartkleur 0.863 0.875 0.059 field SFColor snavelkleur 0.945 0.471 0.024 ] { #Tail Transform { scale 0.01 0.05 0.001 translation 0 -0.015 0.01 children [ Shape { appearance Appearance { material Material { diffuseColor IS vleugelstaartkleur } } geometry Cone { } } DEF touchTail TouchSensor {} ] } # Body Transform { scale 0.02 0.04 0.02 children [ Shape { appearance Appearance { texture ImageTexture { } material Material { diffuseColor 0.024 0.133 0.945 } } geometry Sphere { } } DEF touchBody TouchSensor {} ] } #Wing1 Transform { scale 0.035 0.005 0.03 translation 0.015 0.005 0 rotation 0 0 1 4.7 children [ Shape { appearance Appearance { material Material { diffuseColor IS vleugelstaartkleur } } geometry Extrusion { crossSection [0 0.5, 1 0, 0 0, 0 0.5] solid FALSE } } DEF touchWing TouchSensor {} ] } #Wing2 Transform { scale 0.035 0.005 0.03 translation -0.02 0.005 0 rotation 0 0 1 4.7 children [ Shape { appearance Appearance { material Material { diffuseColor IS vleugelstaartkleur } } geometry Extrusion { crossSection [0 0.5, 1 0, 0 0, 0 0.5] solid FALSE } } USE touchWing ] } #Wing1a Transform { scale 0.008 0.003 0.008 translation 0.017 0.005 0.007 rotation 0 0 1 4.7 children [ Shape { appearance Appearance { texture ImageTexture { } material Material { diffuseColor IS vleugelstaartkleur } } geometry Cylinder { } } USE touchWing ] } #Wing2b Transform { scale 0.008 0.003 0.008 translation -0.017 0.005 0.007 rotation 0 0 1 4.7 children [ Shape { appearance Appearance { texture ImageTexture { } material Material { diffuseColor IS vleugelstaartkleur } } geometry Cylinder { } } USE touchWing ] } #Head Transform { scale 0.012 0.012 0.014 translation 0 0.033 0.015 children [ Shape { appearance Appearance { texture ImageTexture { } material Material { diffuseColor 0.024 0.133 0.945 } } geometry Sphere { } } DEF touchHead TouchSensor {} ] } #Eye1 Transform { scale 0.002 0.002 0.002 translation 0.004 0.042 0.019 children [ Shape { appearance Appearance { material Material { diffuseColor 0.945 0.471 0.024 } } geometry Sphere { } } DEF touchEye TouchSensor {} ] } #Eye2 Transform { scale 0.002 0.002 0.002 translation -0.004 0.042 0.019 children [ Shape { appearance Appearance { material Material { diffuseColor 0.945 0.471 0.024 } } geometry Sphere { } } USE touchEye ] } #Eye2a Transform { scale 0.0012 0.0012 0.0012 translation -.0044 0.0428 0.0192 children [ Shape { appearance Appearance { material Material { diffuseColor 0 0 0 } } geometry Sphere { } } USE touchEye ] } #Eye1a Transform { scale 0.0012 0.0012 0.0012 translation 0.0044 0.0428 0.0192 children [ Shape { appearance Appearance { material Material { diffuseColor 0 0 0 } } geometry Sphere { } } USE touchEye ] } #Beak1 Transform { scale 0.005 0.008 0.0035 translation 0 0.047 0.015 children [ Shape { appearance Appearance { material Material { diffuseColor IS snavelkleur } } geometry Cone { } } DEF touchBeak TouchSensor {} ] } #Beak2 Transform { scale 0.005 0.008 0.002 translation 0 0.047 0.016 children [ Shape { appearance Appearance { material Material { diffuseColor IS snavelkleur } } geometry Cone { } } USE touchBeak ] } # Poot1 Transform { scale 0.0012 0.015 0.0015 translation -0.008 -0.01 -0.02 rotation 1 0 0 1.57 children [ Shape { appearance Appearance { material Material { diffuseColor IS pootkleur } } geometry Cylinder { } } DEF touchFeet TouchSensor {} ] } # Poot2 Transform { scale 0.0012 0.015 0.0015 translation 0.008 -0.01 -0.02 rotation 1 0 0 1.57 children [ Shape { appearance Appearance { material Material { diffuseColor IS pootkleur } } geometry Cylinder { } } USE touchFeet ] } # Poot1a Transform { scale 0.0012 0.01 0.0015 translation -0.008 -0.005 -0.035 rotation 0 1 0 1.57 children [ Shape { appearance Appearance { material Material { diffuseColor IS pootkleur } } geometry Cylinder { } } USE touchFeet ] } # Poot2a Transform { scale 0.0012 0.01 0.0015 translation 0.008 -0.005 -0.035 rotation 0 1 0 1.57 children [ Shape { appearance Appearance { material Material { diffuseColor IS pootkleur } } geometry Cylinder { } } USE touchFeet ] } # Poot1b Transform { scale 0.0012 0.005 0.0015 translation -0.012 -0.005 -0.035 rotation 0 0 1 0.6 children [ Shape { appearance Appearance { material Material { diffuseColor IS pootkleur } } geometry Cylinder { } } USE touchFeet ] } # Poot2b Transform { scale 0.0012 0.005 0.0015 translation 0.010 -0.005 -0.035 rotation 0 0 1 -0.6 children [ Shape { appearance Appearance { material Material { diffuseColor IS pootkleur } } geometry Cylinder { } } USE touchFeet ] } # Poot1c Transform { scale 0.0012 0.005 0.0015 translation -0.004 -0.005 -0.035 rotation 0 0 1 -0.6 children [ Shape { appearance Appearance { material Material { diffuseColor IS pootkleur } } geometry Cylinder { } } USE touchFeet ] } # Poot2c Transform { scale 0.0012 0.005 0.0015 translation 0.004 -0.005 -0.035 rotation 0 0 1 0.7 children [ Shape { appearance Appearance { material Material { diffuseColor IS pootkleur } } geometry Cylinder { } } USE touchFeet ] } } NavigationInfo { type "EXAMINE" } Transform { rotation 0 1 0 1.7 children [ Transform { translation -0.065 -0.09 0 rotation 1 0 0 -1.57 children [ Bird {} ] } ] } BirdHouse {}