Skip to content
/ MGTk Public

Just some python scripts to help procedurally generate maps using perlin noise.

Notifications You must be signed in to change notification settings

JakeKurtz/MGTk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python scripts to help procedurally generate maps using perlin noise.

Blend

Command Line Arguments

Usage: blend.py [OPTIONS] IMAGE1 IMAGE2 MASK

Options:
  -o TEXT   output file

Example

input

> python blend.py dirt.png grass.png mask.png

output

genNoise

Command Line Arguments

Usage: noiseMap.py [OPTIONS] SIZE SCALE

Options:
  -l INT    number of bit levels
  -o TEXT   output file

Example

input

> noiseMap.py 1024 50

output

waterGeometry

Command Line Arguments

Usage: waterGeometry.py [OPTIONS] HEIGHT_MAP

Options:
  -o TEXT   output file

Example

input

> python waterGeometry.py heightMap.png

output

input mask

render of output obj file

genPoints

Command Line Arguments

Usage: genPoints.py [OPTIONS] MASK LEVELS

Options:
  -o TEXT                 output file
  -c <INT, INT, INT>...   colors to use for points
  -r INT...               max/min radii
  -sampleRadius INT       sample radius for poisson
  -rejectionSamples INT   number of rejection sample for poisson

Example

input

> python genPoints.py -c 255 255 0 -c 0 255 0 mask.png 8

output

About

Just some python scripts to help procedurally generate maps using perlin noise.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages