Skip to content
An OpenGL project about procedural terrain generation
C++ GLSL CMake C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CMakeFiles
common
doc
external
saved_screenshots
saved_terrains
src
.gitignore
AntTweakBar.dll
AntTweakBar.lib
AntTweakBar64.dll
AntTweakBar64.lib
CMakeLists.txt
LICENSE
README.md
presentation-slides.pdf

README.md

opengl-terrain

This project was done for the EPFL course Introduction to Computer Graphics (CS-341). I worked on it with Julien Perrenoud and Alain Milliet. We received the grade 5.5/6.

Screenshots

SunSet Sunny NightCall

Compiling the project with Visual Studio

In CMake, set the location of the source code as path/to/procedural-terrain. Choose where to build the binaries, for example path/to/procedural-terrain/bin. Click configure and specify Visual Studio 12 2013 Win64 or later as the generator for this project. Then generate and you are ready to open path/to/procedural-terrain/bin/Moutains.sln. Finally, set the working direcory (right click on Moutains > properties > debugging) as ../../src.

Some tips to use the project

  • W-A-S-D-SHIFT-SPACE are the keys to move around the terrain.
  • 5 different modes :
      1. FREE MODE : you can go around the terrain freely and go up and down using SHIFT and SPACE.
      1. FPS MODE : you can only use WASD keys and go around the terrain, the height will be the height of your noise.
      1. BEZIER MODE : display your Bezier curve on your terrain.
      1. BEZIER EDIT MODE : you can change the positions of the point that determines Bezier curves.
      1. INERTIA MODE : Same as FREE MODE but with inertia.
  • You can use tweakbar to change the terrain, make sure you are in NO_THEME (at the top of the tweakbar) if you want to change every parameters.
You can’t perform that action at this time.