File Exchange

image thumbnail

Automatic Terrain Generation

version 1.0.0.1 (5.02 MB) by Tucker McClure
A set a tools for generating artificial terrain and other rough phenomena mapped over a 2D surface.

18 Downloads

Updated 01 Sep 2016

View License

This set includes three tools for generating approximately realistic-looking terrain and other phenomena that might be mapped across a two dimensional surface, such as population density, corrosion, air pollution, or wildlife distribution. The methods, variations on proposals by Benoît Mandelbrot, are very simple, and yet result in significant, "life-like" complexity.
A document is included that describes how the methods work and how they can be used for various purposes. From MATLAB, open readme.html or navigate to the HTML subdirectory.
Other names for these types of techniques include midpoint displacement, fractional Brownian motion, and fractal landscape.

Comments and Ratings (8)

Slav Demin

Nice work. A flat surface appears here and there but otherwise the terrain looks incredibly realistic.

xiang WANG

I want to know how I can use it in my quadruped simulation. Thank you

Hi Josh. I would think so, or at least that it would be easy to convert the DEM to the a regularly-spaced square mesh representing height and then convert back. I haven't worked with DTED and can't speak to that one.

Josh

Can your generate_terrain_colors.m be used or modified to work over DTED or DEM data with Z instead of (hm)

Hello, Can I use this terrain in a vreal simulation?

Anne

Updates

1.0.0.1

Updated license

1.0.0.0

MathWorks update: Added Live Script.

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor