This repository contains a simple implementation of the ROAM algoritmh.
Code is mostly based on the gamasutra article 'Real-Time Dynamic Level of Detail Terrain Rendering with ROAM' by Bryan Turner (link).
This application has the following requirements:
- SDL2
- OpenGL 3.3
- cmake
To build, you can execute the following commands:
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
This builds an executable named ROAM in build directory
Before you can use ROAM-executable, shaders must be linked to current directory (e.g. build), by symlinking or copying
ln -s ../shaders .
Now you just need to supply the executable an appropriate heightmap of the form:
<width> <height>
<width amount of space separeted float values>
....
<width amount of space separeted float values>
Where each row is on it's own row, totalling height amount of rows. A sample might be grabbed from here.
If you've gotten this far something like this might be displayed:
Togge wireframe with number 1, move with wasd and look around with mouse.