Mike’s Solar System

By Mike Holland

CPE 471

June 8, 2005

 

Space by texture mapping

 

            For my final project I  created a scene of  planets orbiting the sun. I will use texture mapping to create a “box” of space by using images from the JPL website (http://maps.jpl.nasa.gov/). The JPL website has some texture maps of planets which I used to cover a sphere drawn with glSphere. I calculated the circular orbits of the planets in an idle function in order to animate the scene. The whole scene rotates around a sun which will be another texture mapped sphere. The planets themselves will also rotate about the sun which rotates around the y-axis. A comet will also have and elliptical path around the sun. The comet will be made with a texture mapped cone.  This all uses hierarchical modeling so the transforms of one shape will not affect the other.

            The scene will be controllable by allowing the user to see the orbits of the moons and rotate the scene via the camera. The user will also be able to pause the scene as well as reset it. A mesh file will be loaded into the scene and will be controlled by the user via the mouse movements.

 

Timeline of project:

 

May 24th – Final project proposal due

May 26th – Have the space “box” built

May 31st – have spheres added to the scene with texture maps applied

June 2nd – midway demo due in lab

June 4th – Have camera working

June 6th – Have moons and planet moving.

June 8th – demo of final project to the class as well as project report due

 

 

 

 

          Listing of Solar System   commands and features :

 

          Keystrokes:

          *********************

          Planetary actions:

          *********************

 

          Draw Mode: v Key

          Switches modes between orthographic and perspective modes.

 

          Rotate: c Key

          rotates the solar system onscreen by moving the camera

 

          Scale: s Key

          Scales the solar system onscreen. You can also select s on the keyboard

 

          Translate: m Key

          Translates the solar system onscreen

 

          Faces:

          Toggles the faces of the solar system on and off. You can also select f on

          the keyboard.

 

          Reset: a key

          Moves all the planets to their start positon. Must press it again to allow them to  

          move.

 

          Pause: p Key

          Pauses and starts the animate of the orbiting planets.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Initial position

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

From the side