cg final project-solar system advisor: shing-min liu student : che-wei hsu date:2011/01/09
TRANSCRIPT
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
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
plant Diameter Distance
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 ();glPopMatrix();