Skip to content

Simple random terrains generated from simplex noise

License

Notifications You must be signed in to change notification settings

twiho/terrain_generator

 
 

Repository files navigation

Terrain Generator

Simple random terrains generated from simplex noise.

Features

  • Simple and multipass smooth terrain generation
  • 3 texture mapping modes
  • Multithreaded terrain generation
  • Fancy water

Screenshots

Noise visualization (height & texture splatting)

Splat map Height map

Actual screenshots

Screnshot Screnshot Screnshot

Build

Prerequisites: JDK 1.7, JME3, ant

ant

Usage

⇒  java -jar dist/terrain_generator.jar -h                                                            [0]
Usage:  java -jar path_to/terrain_generator.jar -h --[no-]water --seed <seed>
        --terrain multipass|simple --mapping simple|uniform|randomized
        --size <patch> <tile>--write-bitmaps <dir>
        --fullscreen --resolution <w> <h>

All of the options are optional.

        --[no-]water            Show water
                                Default: true

        --seed                  PRNG seed
                                Default: 0

        --terrain               multipass - simplex noise terrain with 5 octaves (richer)
                                simple - single layer of simplex noise (faster)
                                Default: Multipass

        --mapping               simple          uniform smooth height-based map with 3 texture and slope
                                                detection (fastest)
                                unifrom         uniform smooth height-based map with <TODO> textures,
                                                optionally outputs PNGs
                                randomized      randomized smooth height-based map with <TODO> textures,
                                                optionally outputs PNGs (fanciest)
                                Default: Simple

        --size                  Terrain is loaded by tiles (controls viewing distance & performance)
                                which are stored in Q trees by patches. Both must be N^2 + 1
                                Default: 513, 2049

        --write-bitmaps         Output PNG heightmaps & texture splatting alpha maps to
                                the specified directory
                                Default: null

        --fullscreen            Use fullscreen mode (your resolution must match system supported options)
                                Default: false

        --resolution            Resolution in px (availability is system-dependent)
                                Default: (1280, 720)

Dependencies

JMonkey engine 3

License

GPL. See LICENSE. Pavel Kalvoda, 2015

Textures are courtesy of http://www.cgtextures.com/ and therefore subject to their license.

About

Simple random terrains generated from simplex noise

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%