Skip to content

Flying through marching cubes landscape - a THREE.js winter semester project

Notifications You must be signed in to change notification settings

kmichalikk/marching-cubes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flight over an infinite landscape

Demo

Simple demo of procedural generation in THREE.js.

It implements perlin noise as described in https://adrianb.io/2014/08/09/perlinnoise.html.
The noise is used by Marching Cubes Algorithm to generate chunks of geometry.
The generation is run in separate thread using Web Workers API in order to avoid frame drops.
Invisible chunks get deleted to free up memory.

Running the demo:

npm install       # install the dependencies
npm run build     # run vite build
npm run preview   # run the demo

Use WASD to steer the plane.

About

Flying through marching cubes landscape - a THREE.js winter semester project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages