#VRML V2.0 utf8 #campagne.wrl Sebastien Marnier 01/98 Group { children [ Viewpoint { position 0 1.7 0 orientation 1 0.2 0 5.5 } Background { #definition d'un arriere plan avec 3 images frontUrl ["fond1.gif"] #arbre backUrl ["fond1.gif"] rightUrl ["fond1.gif"] leftUrl ["fond1.gif"] bottomUrl ["fond2.jpg"] #herbe topUrl ["fond3.gif"] #ciel blanc } Transform { #mongolfiere rouge translation 0 5 0 children [ #ballon Shape { appearance Appearance { material Material { diffuseColor 1 0 0 } } geometry Sphere { radius 3 } } Transform { #panier translation 0 -4.5 0 children [ DEF panier Shape { appearance Appearance { material Material { diffuseColor 0.5 0.3 0.1 } } geometry IndexedFaceSet { coord Coordinate { point [ -0.5 0.5 -0.5, 0.5 0.5 -0.5, 0.5 -0.5 -0.5, -0.5 -0.5 -0.5, -0.5 0.5 0.5, 0.5 0.5 0.5, 0.5 -0.5 0.5, -0.5 -0.5 0.5, ] } solid FALSE coordIndex [ 0,1,2,3,-1, 1,5,6,2,-1, 5,4,7,6,-1, 4,0,3,7,-1, 3,2,6,7,-1 ] } } DEF cordes Shape { #cordes appearance Appearance { material Material { diffuseColor 0 0 0 } } geometry IndexedLineSet { coord Coordinate { point [ -0.5 0.5 -0.5, -1 2 -1, 0.5 0.5 -0.5, 1 2 -1, 0.5 0.5 0.5, 1 2 1, -0.5 0.5 0.5, -1 2 1 ] } coordIndex [ 0,1,-1, 2,3,-1, 4,5,-1, 6,7,-1 ] } } ] } ] }, Transform { #mongolfiere bleue translation -3 -5 -10 children [ Shape { appearance Appearance { material Material { diffuseColor 0 0 1 } } geometry Sphere { radius 3 } } Transform { translation 0 -4.5 0 children [ USE panier USE cordes ] } ] }, ] }