GithubHelp home page GithubHelp logo

longde123 / terraingenerator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aidan-clyens/terraingenerator

0.0 1.0 0.0 66.52 MB

A procedural terrain generator for the Unity game engine.

License: GNU General Public License v3.0

C# 100.00%

terraingenerator's Introduction

Procedural Terrain Generator

This is a Procedural Terrain Generator for use in Unity projects. Using random noise algorithms, physics simulation, random object placement, custom materials, textures, and colours an endless variety of worlds can be created using this tool. This tool can create a terrain mesh, water mesh, and randomly place objects among a scene. The following images are scenes created based upon terrains created using this Procedural Terrain Generator.

Getting Started

Installing

  1. Create a new empty Unity 3D project.
  2. Clone into Unity project with git clone [email protected]:aidan-clyens/TerrainGenerator.git in the Assets folder.

Setup Universal Render Pipeline (Optional but required to use sample materials and shaders)

  1. Install the Universal Render Pipeline and ShaderGraph to use sample materials and shaders.
  2. Create a new Universal Render Pipeline Asset with Depth Texture and Opaque Texture enabled (this is included under the "Settings" folder).
  3. Go to Project Settings > Graphics and update the Scriptable Render Pipeline Settings.

Generating Terrain

  1. Add TerrainGenerator prefab into scene.
  2. Configure settings and add terrain and water materials.
  3. Click "Generate" to create terrain.
  4. Randomize terrain settings by clicking "Randomize".
  5. Save terrain by entering a name and clicking "Save".
  6. Saved terrains can be loading by selecting a name and clicking "Load".

Terrain Generator

Height Map Generator

Hydraulic Erosion

Forest Generator

Change Log

v1.0

  • Initial release.

v1.1

  • Fixed sample models imported from Blender.
  • Added WaterManager script, which is attached to the Water mesh and used to synchronize waves produced using the sample Water shader. The WaterManager provides the time offset to the Water shader so that the same wave equation may be accessed by script.

v1.2

  • Add option to change terrain chunk width at powers of 2
  • Add option to generate terrain chunks in a grid
  • Add options for more non-uniform terrain generation
  • Fix viewer for multi-chunk generation
  • Add view range for terrain chunk objects as well as forest objects
  • Remove "Normalize Local" option and just normalize all terrain chunks globally
  • Add OpenSimplex noise as well as Perlin noise for terrain generation
  • Add multiple layers of noise in Height Map Generator

Credit

  • Simplex Noise Generator provided by jstanden

Author

Aidan Clyens

terraingenerator's People

Contributors

aidan-clyens avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.