CPSC362A
Video Game Development

Activity 6

Orrery Animation

Create an OpengGL program that animates a multiple rotating stars.

Details

  1. There should a star that:

    1. rotates at the center of the screen

    2. rotates while orbiting star a

    3. rotates while orbiting star b

    4. also rotates while orbiting star b, but is on the opposite side as star c

  2. The program should use a matrix stack, and not call glLoadIdentity.

  3. Modify the rotating stars so that the camera:

    1. uses a perspective projection

    2. slowly moves back from the rotating stars

Example