doctorow — 2014-05-14T23:01:26-04:00 — #1
chellberty — 2014-05-15T00:11:17-04:00 — #2
shane_simmons — 2014-05-15T01:13:19-04:00 — #3
That's certainly more elegant than this one:
195 lines of Amiga BASIC.
zotlerg — 2014-05-15T04:59:13-04:00 — #4
How about mountains including sun, clouds, fog and snow in 500 lines of text:-
Needs a WebGL enabled browser.
shaddack — 2014-05-15T06:44:55-04:00 — #5
The terrain is somewhat unbelievable, though. After the generation, I'd suggest running some simulated erosion on it. A few iterations of simulated water flow and material removal. Assumption of homogenous soil will do the job; asking for simulated harder rock intrusions would be too much.
nobodez — 2014-05-15T08:29:06-04:00 — #6
Yeah, I think that's the largest problem with any of the various random terrain generators, they're missing the next step (likely because it's a very complicated step and likely extremely hard to code for FOSS) of errosion simulation. This would also allow you to know where rivers and lakes would be, and thus make it a lot easier to use these sorts of terrain for more in-depth creative works like fiction and gaming.
knappa — 2014-05-15T10:32:59-04:00 — #7
xzzy — 2014-05-15T11:48:34-04:00 — #8
It's delightfully simple once you figure out what it's doing.. each feature (lakes, rivers, forests) have a 2D array defined that functions like a stamp. For rivers, the generator picks a random x,y coordinate, stamps into the terrain, then moves the x,y in a random direction and stamps again. It repeats until it hits the edge of the map.
Lakes and forests run on a similar concept, but the loop is modified so it behaves differently.
mathew — 2014-05-15T12:49:47-04:00 — #9
redesigned — 2014-05-15T22:11:42-04:00 — #10
that water simulation is pretty amazing, thanks for sharing!
I was especially impressed once i realized i could lift the sphere out of the water and smash it back down, or have it partially submerged.
the only real flaw i've noticed is that water can't overcome the surface tension and separate, like when you smash the sphere downwards you'd expect some water to become airborn. likely that bit adds a lot of complication to the simulation.
lishevita — 2014-05-15T22:42:05-04:00 — #11
After looking at a few of these terrains, I was thinking that I'd want to pick a good one and 3D print it for table top gaming.
ryanbennitt — 2014-05-16T00:37:46-04:00 — #12
POV-Ray can produce much the same thing with a script of about 130 characters.
doctorow — 2014-05-19T23:01:25-04:00 — #13
This topic was automatically closed after 5 days. New replies are no longer allowed.