Spellcaster Studios

Make it happen…

How original: lakes and rivers!

Yep, this week has been very original…

I’m closer and closer, and the latest addition to the algorithms has really made a difference…

After all the process is done, I now do a linear interpolation between the height of the river/lake and the surroundings, making it rise smoothly enough so that the water doesn’t escape!

screen469

Currently, there’s only one remaining problem with the rivers/lakes, which is the rivers that merge… Most of the times, they merge correctly, but on some cases, this happens:

screen470

Basically this happens because after the rivers are generated, I guarantee that they go down, by going through them and making sure the heights are always lower… But this river where I’m standing ends there, because it merges with the other one, so it’s current height is not considered for the rest of the algorithm!

So now I need to handle the mergers better…

Next step is to actually finish the river, by sharing the nodes with the “main” river… Then I have to figure out what’s the lowest height at the end of it, and work my way backwards, by going upstream until I reach the origin, guaranteeing that I always take the lowest height from all the influencing rivers!

It’s a bit of a hack, but combined with the “water valley” algorithm, the result will probably be ok…

Now listening to “War of Will” by “Battlecross”

Link of the Day: Skynet is coming: http://kotaku.com/google-ai-taught-itself-how-to-to-be-a-pro-at-classic-v-1688105409

Comment