An experiment with voxel world generation in the web implemented with HTML5
/CSS
technologies, javascript
and three.js
.
Click here to run the current version
- v 0.1 [Single Threaded, Simplex Noise, Static World Creation]
- v 0.2 [Single Threaded, Improved Noise, Dynamic World Generation]
- v 0.3 [Multi Threaded, Improved Noise, Dynamic World Generation]
-
Windows: (Requires Google Chrome) Download this repo, unpack it and run
.\Tools\runChrome.bat
. This solves cross-conflicts (allows multithreading/webWorkers/textures) - Alternatively, use a simple static local http server (like in php, python or node's http-serve) -
Linux or Mac or Windows: Download this repo, unpack it and put it in a local server, then open
index.html
in any decent web browser.
- three.js - Javascript 3D Library - Used to draw the world
- Procedural Generation - Description of procedurally generating things
- Fast Simplex Noise in Typescript - by joshforisha - Used to generate perlin noise efficiently
- Minecraft - by Mojang - Inspiration on world generation