지구구현
달구현
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 | #VRML V2.0 utf8 DEF moon Transform { translation 7 0 0 center -6 0 0 children Inline { url "moon.wrl" } } DEF time1 TimeSensor { cycleInterval 1.6667 loop TRUE } DEF ori1 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 ori1.set_fraction ROUTE ori1.value_changed TO moon.rotation DEF earth Transform { children Shape { geometry Sphere {radius 3 } appearance Appearance { texture ImageTexture { url "earth_living.jpg" } } }} DEF cloud1 Transform { children Shape { geometry Sphere {radius 3.3 } appearance Appearance { texture ImageTexture { url "cloud.gif" } } }} DEF cloud2 Transform { children Shape { geometry Sphere {radius 3.3 } appearance Appearance { texture ImageTexture { url "cloud.gif" } textureTransform TextureTransform {rotation 3.14 } } }} DEF time_e TimeSensor { cycleInterval 500 loop TRUE } DEF time TimeSensor { cycleInterval 100 loop TRUE } DEF time2 TimeSensor { cycleInterval 150 loop TRUE } DEF ori OrientationInterpolator { key [0 .5 1] keyValue [ 0 1 0 0 0 1 0 3.14 0 1 0 6.28] } DEF ori1 OrientationInterpolator { key [0 .5 1] keyValue [ 0 1 1 0 0 1 1 3.14 0 1 1 6.28] } DEF ori2 OrientationInterpolator { key [0 .5 1] keyValue [ 1 1 0 0 1 1 0 3.14 1 1 0 6.28] } ROUTE time_e.fraction_changed TO ori.set_fraction ROUTE ori.value_changed TO earth.rotation ROUTE time .fraction_changed TO ori1.set_fraction ROUTE ori1.value_changed TO cloud1.rotation ROUTE time2.fraction_changed TO ori2.set_fraction ROUTE ori2.value_changed TO cloud2.rotation |
달구현
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #VRML V2.0 utf8 DEF venus Transform { children Shape { geometry Sphere {radius 0.5 } appearance Appearance { texture ImageTexture { url "moon.jpg" } } }} DEF time_e TimeSensor { cycleInterval 500 loop TRUE } DEF time TimeSensor { cycleInterval 100 loop TRUE } DEF time2 TimeSensor { cycleInterval 150 loop TRUE } DEF ori OrientationInterpolator { key [0 .5 1] keyValue [ 0 1 0 0 0 1 0 3.14 0 1 0 6.28] } ROUTE time_e.fraction_changed TO ori.set_fraction ROUTE ori.value_changed TO venus.rotation |
쓰인 이미지
'Study > VRML' 카테고리의 다른 글
3D 프로그래밍 프로젝트 - 화성 구현 (0) | 2011.11.15 |
---|---|
3D 프로그래밍 프로젝트 - 목성 구현 (0) | 2011.11.15 |
3D 프로그래밍 프로젝트 태양계 계산 (0) | 2011.11.15 |
6월 16일 수업 내용 (0) | 2011.11.15 |
4월 12일 수업내용 - 2 (0) | 2011.11.15 |