#VRML V2.0 utf8 # Nancy Kiang # CS184 # Lab 2 - Creating a relaxed world. # 9/11/98 #A desert island with four chairs, table with umbrella, on a patio protruding #from the sand. Orb sun in the sky. #All curves and elevation grids for the Inline files were generated in S-Plus. DEF RelaxedWorld Group { children [ Viewpoint { description "Standing view" #position 0.0 5.0 20.0 #straight view position 13.5 3.2 5.5 orientation 0.0 1.0 0.0 0.78 }, #LIGHT SOURCE DirectionalLight { direction -0.1 -2.0 0.8 #sun angle #noon direction 0.0 -1.0 -0.3 intensity 1.0 ambientIntensity 5 color 1.0 0.9 0.7 }, #SUN DEF Sun Transform { translation -800.0 400.0 -1500 children [ Shape { #Sun - glowing sphere appearance Appearance { material Material { ambientIntensity 0.7 diffuseColor 0.88 0.70 0.0 specularColor 0.71 0.70 0.56 shininess 0.1 emissiveColor 0.44 0.30 0.0 } } geometry Sphere { radius 100.0 }#geometry }#Shape ]}#Transform #BACKGROUND Background { skyColor [ # 0.3 0.3 1.0, 0.5 0.7 0.0, 0.4 0.7 1.0, 1.0 1.0 1.0 ] skyAngle [ 1.309, 1.571 ] groundColor [ 0.2 0.25 1.0, 0.01 0.3 0.3, 0.3 0.50 0.7, ] groundAngle [ 1.309, 1.571 ] }, #HILL LANDSCAPE Inline { url "beach.wrl" } #PATIO/GRASS Transform { scale 1.0 1.0 1.0 children [ Inline {url "patio.wrl"} ] } #4 CHAIRS Transform { rotation 0 1 0 1.05 translation 2.0 0.0 -1.5 children [ DEF Chair Inline { url "chair.wrl" } ] } Transform { rotation 0 1 0 2.36 translation -2.5 0.0 0.0 children [ USE Chair ] } Transform { rotation 0 1 0 -2.36 translation -3.0 0.0 2.0 children [ USE Chair ] } Transform { rotation 0 1 0 -1.05 translation 6.0 0.0 -5.0 children [ USE Chair ] } #TABLE WITH UMBRELLA Transform { rotation 0 1 0 0.52 translation 0.0 0.0 0.0 children [ Inline {url "table.wrl"} ] } #Straight canopy with straight rod #Transform { # translation 0.0 6.0 0.0 # children [ Inline {url "umbrella.wrl"}] #} #Transform {#center umbrella rod # scale 2.0 6.8 2.0 # translation 0.0 3.4 0.0 # children [ Inline {url "rod.wrl"} ] #} #Tilted canopy Transform {#umbrella canopy rotation -1.0 0.0 1.0 0.524 #pi/6 translation 0.0 4.8 0.0 children [ Transform { translation 0.0 0.75 0.0 children [ Inline {url "umbrella.wrl"} ] }] } Transform {#center umbrella rod scale 2.0 4.86 2.0 translation 0.0 2.43 0.0 children [ Inline {url "rod.wrl"} ] } Transform {#umbrella rod tilted piece rotation -1.0 0.0 1.0 0.524 #pi/6 translation 0.0 4.8 0.0 children [ Transform { scale 2.0 1.5 2.0 translation 0.0 0.75 0.0 children [ Inline {url "rod.wrl" } ] } ]} Transform {#umbrella rod screw rotation 0 1 0 -0.785 children [ Transform { scale 1.0 0.15 1.0 translation 0.0 4.8 0.0 rotation 1.0 0.0 0.0 1.57 #pi/2 lying horiz children [ Inline {url "rod.wrl"} ] }] } ]}#Group