Skip to content

PaulaMihalcea/Procedural-Terrain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebGL Procedural Terrain Generator

Author: Paula Mihalcea

This project aims to create a procedural (infinite) terrain using the three.js JavaScript library and WebGL. The terrain itself is made of a 3x3 matrix of tiles that are continuosly generated as the scene moves, by using one among three different pseudorandom noise algorithms: Perlin noise, Simplex noise and Diamond-Square noise.

The tile generation algorithm that allows the new tiles to perfectly match the old ones on their edges has been specially created for this project by the author.

A series of dat.GUI, mouse and keyboard controls allow the user to change the terrain and scene parameters, as well as move around the camera.

The project can be viewed in action here: Procedural Terrain.


This project uses the following libraries:

The following images have been freely adapted by the author to be used as textures:

More references can be found in the documentation.


The main script file, proceduralTerrain.js, has been heavily commented in the hopes that people trying to re-create this project will better understand how the scene and terrain generation works, since the author has deemed insufficiently documented other similar projects found around the web.

About

WebGL Procedural Terrain Generator with three.js.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published