Okay, well that worked WAY better than I expected. Only took me about half an hour to convert a (slice of a) heightmap into a depth-map (a linked-list of 2D arrays, each containing "walkable" water or rock).

Looks much improved over my spikey, organically-grown maps and also means (and this is going to be incredibly useful) I can pre-generate massive maps (e.g. 32K on a side) and load regions in chunks.

Pretty chuffed at that. 😀

Follow

As a reference, this is a blown-up copy of the slice of the heightmap that I used (with light levels slightly increased so it's at least vaguely visible).

Sign in to participate in the conversation
Mental Health dot Social

A safe, social, virtual space for anyone interested in mental health and its issues. Whether you're a service user, someone with lived or living experience or a mental health professional, feel free to join, hang out and chat about anything.

Non-judgemental, open-minded and with a zero-tolerance policy on abusive behaviour, harassment and discrimination.

If you are experiencing a suicidal crisis, please call one of the numbers below and talk to someone - they will be able to help.