Open Source Fractal Maps

I'm interested in creating a game that uses fractal maps for a more realistic geography. However, the only fractal map programs I have found are only Windows, for example Fractal Mapper . Of course, they are also not open.

Are there any open developers of fractal fraction maps, preferably in Python or C / C ++? Ideally, I would like something that can be "connected" to the program, and not be autonomous.

+6
c ++ python open-source maps fractals
source share
7 answers

Fracplanet may be helpful.

+8
source share

The main landscape generation involves creating a height map (image) and rendering it using pixel color as height. Thus, you can find useful code for generating images or textures. This is a good tutorial .

+4
source share

For the landscape aspect, consider libnoise . It is packaged for Debian and has excellent documentation with a chapter on generation relief with sample C ++ code.

Of course, there is much more to it than “cards” than the spanking of some flowers in a pitch field (for example, Fracplanet adds rivers and lakes). And the type of terrain you get from these methods is not really realistic; continents, as a rule, do not grow from the coast to rocky inland areas, so, perhaps, imitation of continental drift and the processes of mining and erosion will help (alternatively, fake it ). And then, if you want vegetation or artifacts of life forms (for example, roads and cities) to fill out your map, you might want to look at cellular automata or other “artificial life” tools. Finally, the Virtual Terrain Project is worth looking for more links and ideas.

+1
source share

I highly recommend purchasing a copy

Texturing and modeling: a procedural approach

Now I see this in the third edition (I have only the second), but it contains many useful articles on the use of procedural texturing, including several chapters on their use in fractal areas. It starts with a detailed discussion of noise algorithms - so you have everything from the basics. Authors include Musgrave, Perlin and Worley, so you really can't do better.

+1
source share

If you want a truly realistic geography, you can use the NASA SRTM dataset, perhaps in combination with OpenStreetMap . :-)

0
source share

A very simple implementation would be to use a midpoint shift fractal, http://en.wikipedia.org/wiki/Diamond-square_algorithm, or a slightly more complex Diamond-Square algorithm. http://www.gameprogrammer.com/fractal.html#diamond

These are similar algorithms in Difference Cloud in Photoshop.

0
source share

Have you already tried to search for fractals on sf.net ?

-one
source share

All Articles