CG Final Project-solar system Advisor: Shing-Min Liu Student : Che-Wei Hsu Date:2011/01/09
outline Introduction Technology Conclusion DEMO
Introduction
Google Earth is a virtual globe, map and geographical information program. It displays satellite images, 3D Buildings,map,street view of the Earth's surface
Introduction Satellite images of the Moon and Mars. Shows information about constellations and other space sights visible
Introduction I try to create my solar system like google earth !!! But It’s difficult.
Technology Use skill that learned in CG class. Use OpenGL with glut. Use texture to draw surface of plant. Enable light Enable RGBA Draw Solar system according to real Scale model –But not precise –Because some plant will be too small.
Technology plantDiameterDistance Sun 44.6 m (146 ft) 零 Mercury 15 cm (6) 1.9 公里 (1.2 mi) Venus 38 cm (15) 3.5 公里 (2.2 mi) Earth 41 cm (16) 4.8 公里 (3.0 mi) Moon 10 cm (4) 12 m (40 ft) 從地球 Mars 23 cm (9) 7.2 公里 (4.5 mi) Jupiter 4.55 m (15 ft) 24.9 公里 (15.5 mi) Scale model of Solar system
Technology 繪製水星 glPushMatrix (); glDisable(GL_LIGHT0); glRotatef(mep_Angle, 0.0f, 1.0f, 0.0f);// 控制水星公轉 glRotatef(-90.0f, 1.0f, 0.0f, 0.0f); gluDisk(quadric, mes_dis-0.01, mes_dis, 300, 300);// 繪製水星軌道 glEnable(GL_TEXTURE_2D );// 開啟紋理 glTranslatef(mes_dis, 0.0f, 0.0f);// 將坐標系右移設定太陽間距 glBindTexture(GL_TEXTURE_2D, texture[4]);// 綁定紋理 glPushMatrix (); glRotatef(mes_Angle, 0.0f, 0.0f, 1.0f);// 控制水星自轉 gluSphere(quadric, 0.03f, 32, 32);// 水星球體 glPopMatrix ();
Technology Function –Speed up / dowm –Zoom in /out
DEMO
Demo