{"repo":"IceCreamYou/THREE.Terrain","free":true,"listed":false,"github":"https://github.com/IceCreamYou/THREE.Terrain","clone":"git clone https://github.com/IceCreamYou/THREE.Terrain.git","description":"A procedural terrain generation engine for use with the Three.js 3D graphics library for the web.","language":"JavaScript","stars":885,"topics":["terrain","heightmap","javascript","noise","threejs","scene","materials","procedural-generation","procedural","diamond-square-algorithm"],"license":"MIT","category":"game-templates","readme_excerpt":"THREE.Terrain is a procedural terrain generation engine for use with the Three.js 3D graphics library for the web. Try the demo! Usage Install with npm ( npm install three.terrain.js ) and import as an ES module. You also need a compatible version of three.js (r160 or later) in your project. - Terrain (default export) builds a terrain mesh. - TerrainNS holds generators, filters, and other helpers (for example TerrainNS.DiamondSquare , TerrainNS.Smooth , TerrainNS.ScatterMeshes ). - generateBlendedMaterial (also available as TerrainNS.generateBlendedMaterial ) helps texture the terrain. Procedurally Generate a Terrain In your own script, generate a terrain and add it to your scene: All parameters are optional and thoroughly documented in the source code. You can play around with some of the parameters and see what happens in the demo. Methods for generating terrain procedurally that are available by default include Cosine, Diamond-Square (a better version of Midpoint Displacement), Fault lines, Feature picking, Particle deposition, Perlin and Simplex noise, Value noise, Weierstrass functions, Worley noise (aka Cell or Voronoi noise), Brownian motion, arbitrary curves, and various combinations of those. Exporting and Importing Export a terrain to a heightmap image: The result will look something like this: If all you need is a static terrain, the easiest way to generate a heightmap is to use the demo and save the generated heightmap that appears in the upper-left corner. Howeve","default_branch":null,"files":null,"tree":[],"storefront":"/r/IceCreamYou","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/IceCreamYou/THREE.Terrain/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}