I went back to working on my other project this week. I've made some good progress. I changed my erosion model and things were looking up, but they weren't quite right. So naturally I continued working and mucked everything up. Things went
From this:
To this:
Okay I'm kidding. The second picture isn't actually fire and brimstone; it's just color coded. The red shows how much sediment is in the water and the green shows how fast the water's flowing. That said, things are still off. The sediment should dissipate smoothly through the ocean and slowly build up coastlines. Instead, it seems to gather in pockets, which leads to strange looking pits everywhere.
There three things, at minimum, that I definitely want working reliably before I use this data to generate actual in-game terrain.
First is natural valleys and coastlines. Otherwise the player will spend all their time on 45° inclines. This is something I've had a lot of trouble with. Some of my recent models have almost produced good coastlines, but not quite. This is because I'm now modeling sedimentation better. I think the results will be really good, if I can improve the current model. They aren't too smooth or too jagged and are really starting to look like actual mountains.
Second is stable rivers that are a least a meter deep. The blocks in-game are a meter wide on each side. My plan is for any surface water less than a meter to result in swampland. However, rivers aren't swampy so they need to be at least a meter deep to avoid this. River sources, on the other hand, tend to be either underground or swampy. Ideally, rivers will begin in swampy areas and transition smoothly to proper rivers.
Third is good mountains. It'd be boring if everything was grassland. There are a few things that go into this. They can't be too steep or too shallow. The amount of vegetation should be lower near the top. There should be some rocky outcrops. I'm really pleased with shapes of the mountains in the recent models. They aren't too smooth.
Those are the minimum that I want before using the algorithm in game, however, there are plenty of other things I want to include eventually.
Temperature and humidity. I would love to model these things. They would be super useful for creating natural biomes. However, I imagine they'd also be really finicky and hard to get right.
Snow and ice. While it would be really easy to simply make things freeze above a certain altitude, it'd be nicer to have a little natural variation. These things would also affect river formation, so it might take a lot of work.
Implied features. One thing I did with the new model was remove a lot of complexity. I decided that instead of trying to get everything to form naturally, I would dumb things down and use the results to generate extra features. For example, beaches should form wherever soil meets the ocean. Deserts would form in areas of low humidity. Waterfalls could be created anywhere rivers go over a steep drop.
That's it for today, folks!
No comments:
Post a Comment