1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | #VRML V2.0 utf8 Viewpoint { position 0 1.8 50 } DEF sun_1 Transform { children [ Shape { geometry Sphere { radius 56 } appearance Appearance { # material DEF m1 Material { diffuseColor .9 .5 .5 specularColor 1 .3 .3 emissiveColor 1 .3 .3 ambientIntensity 1 shininess .05 transparency .8 } texture ImageTexture { url " sun2.jpg" } } } DEF time TimeSensor { cycleInterval 100 loop TRUE } DEF ori OrientationInterpolator { key [ 0 .5 1] keyValue [ 1 0 1 0 1 0 1 -3.14 1 0 1 -6.28 ] } ] } ROUTE time .fraction_changed TO ori.set_fraction ROUTE ori.value_changed TO sun_1.rotation DEF sun_2 Transform { children [ Shape { geometry Sphere { radius 56.80 } appearance Appearance { # material DEF m2 Material { diffuseColor .44 .1 .002 specularColor 1 0 0 emissiveColor .149 .129 0.008 ambientIntensity .01 shininess 1 transparency .3 } texture ImageTexture { url " sun1.jpg" } textureTransform TextureTransform { rotation 3.14 } } } DEF time1 TimeSensor { cycleInterval 50 loop TRUE } DEF ori2 OrientationInterpolator { key [ 0 .5 1] keyValue [ 0 1 0 0 0 1 0 3.14 0 1 0 6.28 ] } ] } ROUTE time1.fraction_changed TO ori2.set_fraction ROUTE ori2.value_changed TO sun_2.rotation DEF sun_3 Transform { children [ Shape { geometry Sphere { radius 80 } appearance Appearance { material DEF m2 Material { diffuseColor .644 .521 .002 specularColor 1 0 0 emissiveColor .349 .329 0.008 ambientIntensity 1 shininess 1 transparency .3 } # texture ImageTexture { url " sun1.jpg"} } } DEF time2 TimeSensor { cycleInterval 50 loop TRUE } DEF ori3 OrientationInterpolator { key [ 0 .2 .5 .7 1] keyValue [ 1 0 1 0 0 1 1 1.57 1 0 1 3.14 1 1 0 -1.57 1 0 1 6.28 ] } ] } DEF time3 TimeSensor { cycleInterval 2 loop TRUE } DEF scalar PositionInterpolator { key [ 0 .2 .5 .95 1] keyValue [ .74 .735 .735 .74 .735 .75 .77 .79 .77 .735 .76 .74 .735 .74 .735]} ROUTE time2.fraction_changed TO ori3.set_fraction ROUTE ori3.value_changed TO sun_3.rotation ROUTE time3.fraction_changed TO scalar.set_fraction ROUTE scalar.value_changed TO sun_3.scale DEF sun_4 Transform { children [ Shape { geometry Sphere { radius 88 } appearance Appearance { material DEF m2 Material { diffuseColor .544 .421 .002 specularColor 1 0 0 emissiveColor .349 .309 0.008 ambientIntensity 1 shininess 1 transparency .89 } # texture ImageTexture { url " sun1.jpg"} } } DEF time4 TimeSensor { cycleInterval 50 loop TRUE } DEF ori4 OrientationInterpolator { key [ 0 .2 .5 .7 1] keyValue [ 1 1 1 0 1 1 0 -1.57 0 1 1 3.14 1 0 1 1.57 1 1 1 6.28 ] } ] } DEF time5 TimeSensor { cycleInterval 1 loop TRUE } DEF scalar1 PositionInterpolator { key [ 0 .4 .5 .65 1] keyValue [ .73 .73 .75 .73 .75 .73 .89 .87 .86 .74 .75 .76 .73 .74 .75 ]} DEF trans ScalarInterpolator { key [ 0 .2 .5 .95 1] keyValue [ .3 .5 .85 .6 .3 ] } ROUTE time4.fraction_changed TO ori4.set_fraction ROUTE ori4.value_changed TO sun_4.rotation ROUTE time5.fraction_changed TO scalar1.set_fraction ROUTE scalar1.value_changed TO sun_4.scale ROUTE time5.fraction_changed TO trans.set_fraction ROUTE trans.value_changed TO m2.transparency |
'Study > VRML' 카테고리의 다른 글
3D 프로그래밍 프로젝트 - 금성 구현 (0) | 2011.11.15 |
---|---|
3D 프로그래밍 프로젝트 - 천왕성 구현 (0) | 2011.11.15 |
3D 프로그래밍 프로젝트 - 별 구현 (0) | 2011.11.15 |
3D 프로그래밍 프로젝트 - 토성 구현 (0) | 2011.11.15 |
3D 프로그래밍 프로젝트 - 명왕성 구현 (0) | 2011.11.15 |