Skip to content
forked from bingonline/ROAM

continuous LOD algorithm ROAM

Notifications You must be signed in to change notification settings

codexiaotao/ROAM

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ROAM

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).

Building

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

Usage

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:

Yay screen

Togge wireframe with number 1, move with wasd and look around with mouse.

About

continuous LOD algorithm ROAM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 84.7%
  • C 7.6%
  • CMake 7.0%
  • GLSL 0.7%