Skip to content

kradical/terrain-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terrain-generator

CSC305 Project 3

Dustin Bolink & Konrad Schultz

This repository contains all necessary assets to run. it has a script called run.sh to compile and run.

Navigate to the root folder and try $ ./run.sh

Your system must be using opengl 4 and have the sdl2 dev dependency in your system or user includes.

See links for the ubuntu ppa and instructions, and installing sdl2 dev package.

GUI and Navigation

The gui contains a window for adjusting flythrough camera/look at path values, speed, and manual mode. It also has a window for adjusting bezier curve points that the camera paths through. It also has a window for adjusting terrain generation parameters.

Screenshots

Screenshot1 Screenshot2 Screenshot3 Screenshot4

Features

This is a non-exhaustive list of features implemented:

  • An array of vertices to form a plane
  • Perlin noise to create a height map
  • Texture sampling and blending to color terrain
  • Calculated and used normals to blend based on terrain steepness
  • Bezier curve for camera position
  • Bezier curve for camera look at location
  • Parameterized perlin noise inputs
  • Parameterized Bezier curve points
  • Parameterized automatic flythrough vs. manual mode
  • Skybox

Anything parameterized can be played with at runtime via the imgui windows.

About

Terrain generation with perlin noise, basic texturing and b-spline camera motion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published