#VRML V2.0 utf8 #arbre.wrl Sebastien Marnier 12/97 Group { children [ DEF entree Viewpoint { position -2.0 1.5 10.0 orientation 0.0 1.0 0.0 6.11 }, PointLight { ambientIntensity 0.2 color 1.0 1.0 1.0 location 0.0 3.2 0.0 }, Transform { #lampadaire translation 0.0 1.5 0.0 children [ Shape { appearance Appearance { material Material { diffuseColor 0.0 0.2 0.2 } } geometry Cylinder { height 3.0 radius 0.1 top FALSE bottom FALSE } } Transform { translation 0.0 1.7 0.0 children [ Shape { appearance Appearance { material Material { diffuseColor 1.0 1.0 1.0 emissiveColor 1.0 1.0 0.0 } } geometry Sphere { radius 0.4 } } ] } ] }, #sol Transform { #sol translation 0.0 0.0 1.5 children [ Shape { appearance Appearance { texture ImageTexture { #on utilise une image url ["marbre.jpg"] #marbre.jpg pour le sol } } geometry Box { size 2.0 0.2 5.0 } } ] }, Transform { #arbre translation 0.0 1.55 3.0 children [ Shape { appearance Appearance { texture ImageTexture { #on utilise un gif transparent url ["arbre.gif"] #pour les feuilles } } geometry Sphere { radius 0.8 } } ] }, Transform { #tronc translation 0.0 0.35 3.0 children [ Shape { appearance Appearance { material Material { diffuseColor 0.5 0.2 0.0 } } geometry Cylinder { radius 0.15 height 0.9 top FALSE bottom FALSE } } Shape { #pot appearance Appearance { texture PixelTexture { #definition d'une texture image 2 2 3 0xb00000 0x904520 #2*2 points codes en rgb 0x904520 0xb00000 } } geometry Box { size 0.5 0.5 0.5 } } ] }, ] }