felixpalmer / lod-terrain

WebGL terrain with seamlessly changing level of detail

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LOD Terrain

LOD Terrain is an example of how to render a terrain with a variable level of detail (LOD), based on the distance from the camera. The approach taken is based on CD-LOD.

Try out the live demo here

Height calculations

Currently the detail distribution isn't as per the paper, namely it assumes the most detailed region is the point above which the camera currently resides, rather than taking into account the height of the terrain.

Running

Just host this directory with a webserver of your choice. You can also use the webserver.sh script included (provided you have Python) to set up a simple development server.

Then visit http://localhost:8000 in your browser. Or try the online demo.

Structure

This project is based on amd-three.js. Please see there for details of project structure.

About

WebGL terrain with seamlessly changing level of detail

License:MIT License


Languages

Language:JavaScript 56.4%Language:HTML 25.6%Language:GLSL 16.4%Language:CSS 0.9%Language:Python 0.7%