Spellcaster Studios

Make it happen…

Lakes

Working on a lake system, and results are less than optimal… Disappointed smile

Currently, I’m looking for a suitable place for a lake in the river, and then using a flood-fill algorithm, but something is going terribly wrong on it:

screen459

So, the lava here shows the places where a “lake” tile is being placed, and the height shows how far away from the initial position we are (which will make the rivers be too “round”, but this is just a first approach). In this shot you can see the problem better:

screen460

For some reason, to the south of the starting position, stuff seems to be correctly computed to the north of the initial position…

Probably an implementation error somewhere, but I’ve not been able to detect it…

What I really wanted was to use something like I did for the rivers before the pathfinding algorithm, it did a great job of creating lakes (less for rivers…), but the two algorithms don’t exactly work well with each other…

I’ll need to keep studying a good algorithm for this… It’s worth wasting the time, since I’ll use this for the frozen lakes and lava pools in the remaining game…

Now listening to “The Glorious Burden” by “Iced Earth”

Link of the Day: Another amazing 4K achievement of the demo scene:

Comment