This project is to stimulate a flying helicopter.

The animation is drawn at exactly 30fps because I am using the time tick in window. The daylight increases and decreases with time. Therefore, the scene alternates between light and dark.

The sky is rendered with a quad that is applied with a texture file. It uses blending to fade into the black background when it turns dark. Stars are drawn randomly and appear brightest when the sky is darkest.

The ground is made of one big quad and several quads. The smaller quads are to produce spotlight effects. Cones and spheres are created randomly to move toward the viewer, so that they create the effect of moving.

The helicopter body is made of one ellipsoid. It wobbles as it moves. The main top blades are one quad that spins so fast that I have to create many transparent blades to make them look like trail.

The UP arrow key is to make it alternate between light and dark quicker; the DOWN arrow key slows it. The RIGHT arrow key is to increase flying speed seemingly; the LEFT arrow key decreases it. The 'S' key toggles the spotlight.

Things that I want to implement are:
1. Helicopter firing missile that detonate on pressing a key or mouse.
2. More textures or objects that approach on the ground.
3. Real sky with changing cloud and sun.
4. Detailed helicopter with texture maps.
5. Snow falling from sky.

To download and play the program, click and save this EXE file and this BMP file to the same directory and run the EXE file.

Picture when it is day:

Picture when it is night: