#VRML V2.0 utf8 # 5. Schritt: Textur der Schachtelw„nde WorldInfo { title "Schachtel" } NavigationInfo { type "EXAMINE" } DEF Kamera Viewpoint { fieldOfView 0.5 position -15 30 90 orientation -1 -1 0 0.5 } DirectionalLight { direction -0.7 0 -1 } Background { skyColor 0.35 0.7 1 } PROTO Schachtelwand [ field SFVec3f groesse 10 10 0.2 ] { Group { children [ Shape { appearance Appearance { material Material {diffuseColor 1 1 0 } textureTransform TextureTransform { scale 1 1 rotation 0} texture ImageTexture { url "images/Image1b.jpg" } } geometry Box { size IS groesse } } ] } } PROTO Schachteldeckel [ field SFVec3f groesse 10 0.2 5 ] { Transform { translation 0 0 2.5 children [ Shape { appearance Appearance { material Material {diffuseColor 1 1 0} texture ImageTexture { url "images/Image1b.jpg"} } geometry Box { size IS groesse } } ] } } Transform { translation 0 0 5 children [ Schachtelwand {} ] } Transform { translation 0 0 -5 children [ Schachtelwand {} ] } Transform { rotation 0 1 0 1.57 translation 5 0 0 children [ Schachtelwand { groesse 10.2 10 0.2} ] } Transform { rotation 0 1 0 1.57 translation -5 0 0 children [ Schachtelwand {groesse 10.2 10 0.2} ] } Transform { rotation 1 0 0 1.57 translation 0 -5 0 children [ Schachtelwand {groesse 10.2 10.2 0.2} ] } Transform { rotation 0 1 0 1.57 translation -5 5 0 children [ DEF Deckelli Transform{ children [Schachteldeckel {}] } ] } Transform { rotation 0 1 0 -1.57 translation 5 5 0 children [ DEF Deckelre Transform{ children [Schachteldeckel {}] } ] } Transform { translation 0 5 -5 children [ DEF Deckelhi Transform{ children [Schachteldeckel {}] } ] } Transform { rotation 1 0 0 3.14 translation 0 5 5 children [ DEF Deckelvo Transform{ children [Schachteldeckel {}] } ] }