Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (756)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Discussions / General Discussions / Tile maps - generating islands or continents? on: 2012-08-25 13:39:02

I have a 2d tile game, and I'd like to generate random maps (of size 100x50). I'd like to be able to create small islands, or large continents.

It seems like a standard way to do this is to use perlin noise. You generate a random heightmap, pick a threshold for the water line, and assign tiles their terrain type from that.

Looking at perlin noise implementations, I can't find a description of the domain of the different parameters, or how/if they can be combined to generate small islands vs large continents. Perlin noise seems to have a few parameters:


Is anyone familiar enough with this to describe them, and how they can be combined to create the "clump" size I'm after? I found a posting by a member here that made an interactive demo of perlin noise:

but I'm basically just playing with the parameters without really knowing what they're doing. I'm not even sure what the min/max range of each of the above params can be.

I found this article which is pretty much exactly what I want:

but the author is using flash which has a perlin noise function built in, so I'm not sure how its version of perlin noise and its parameters map to a .. "standard"? version of perlin noise. The author says:

"Generate a Fractal Grayscale Perlin Noise with an x-frequency of half the width, a y-frequency of half the height, and 8 octaves. For more loose islands, or for larger maps, you can drop the frequency to 1/4th of the width and height or lower, to fit your purposes."

Matching that up with the sample applet from the above user didn't yield expected results.

If anyone is knowledgable about this it'd be awesome to get a clear description memorialized on the nets.

Thank you
Pages: [1]
DesertCoockie (52 views)
2018-05-13 18:23:11

nelsongames (83 views)
2018-04-24 18:15:36

nelsongames (74 views)
2018-04-24 18:14:32

ivj94 (759 views)
2018-03-24 14:47:39

ivj94 (87 views)
2018-03-24 14:46:31

ivj94 (643 views)
2018-03-24 14:43:53

Solater (102 views)
2018-03-17 05:04:08

nelsongames (184 views)
2018-03-05 17:56:34

Gornova (426 views)
2018-03-02 22:15:33

buddyBro (1086 views)
2018-02-28 16:59:18
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!