Terrain

Project Description:

A program that renders, in real-time, a (semi) photo-realistic landscape
of the area surrounding SDSU, San Diego Ca.

Visible in the program are SDSU, Cowles Mountain, and Lake Murray. Source
height data is from USGS .DEM files, which are then saved into grayscale
.BMP files, which are read in by the program.

Here is the snapshot:

 

Improvements to make (if I had time):
Remove all windows code, use GLUT instead
Add mouse camera control

Files: Maynard5.cpp
Texture.cpp
Texture.h
Sky.bmp
Terrain.bmp
tex00 - 33.bmp
Maynard5.exe


Program Controls:

Move camera: arrow keys
Level of Detail:
F1: Highest LOD (default)
F2: High LOD
F3: Medium LOD
F4: Low LOD
F5: Tilt camera down
F6: Tilt camera up
F7: Squash Terrain vertically
F8: Stretch Terrain vertically
F9: Fill mode
TAB: Wireframe mode
G: Toggle Fog mode
Esc: Quit


Thanks to Jeff Molofee (http://nehe.gamedev.net) for the windows
full-screen code used in this program, and also to Jeff Sale at edcenter.sdsu.edu for supplying the texture images....

You can get the source code terrain.zip.

The binary executable file name is Maynard5.exe.
This code is Copylefted 2000 Jordan Maynard, email me with any questions:
maynard@rohan.sdsu.edu