Procedural Terrain Generation

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
199 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 3, 2011

The following applications are used to procedurally create a 3D terrain.

The landscape application creates a flat landscape that could be modified at will using a number of different tecniques. These techniques include fault line creation, particle deposition (addition to make hills, and subtraction to make craters).

The application is controlled through use of the key board and mouse. When the camera is in the first-person mode the player is controlled using the following keys

W -- Move Forward.
A -- Move Left.
S -- Move Backwards.
D -- Move Right.
Q -- Strafe Left.
E -- Strafe Right.

The mouse is also used to control where the player is looking.
The controls are exactly the same for when the player is in the God camera mode.
The only difference being the player is able to move vertically using the Up and Down arrow keys. The player can switch between the God-camera mode and the first-person mode using the 1 key and the 2 key respectively.

The terrain generation is also controlled using the keyboard with the following keys

3 -- Create a singular fault line across the terrain
4 -- Create a singular particle deposition hill
5 -- Create a singular particle deposition crater
6 -- Uses the smoothing algorithm to smooth the terrain
7 -- Creates a cliff across the terrain
N -- Creates random terrain based on pre defined variables
R -- Resets the terrain to a flat plane
SPACE -- Stops the morphing of the terrain at its current position

To create different types of terrain (i.e. Coastal, Mountainous, Rolling Hills etc) the constants defined in terrain.h can be changed. The current settings are of a coastal terrain (only fault lines).

Category:

Gaming

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (0)

Sign In or Sign Up now to post a comment!
Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more