December 28, 2021

Elevation XVIII: A Bigger Map

The map I've been using is about half the size it should be. So I wrote some code to generate a map of arbitrary size. I'm actually a little mad about it, since it took about half an hour to generate what took me months to figure out 3 years ago. But I'll be better for it.

The next step is to regenerate elevation and terrain, wind and currents, climate and all that good stuff.

If you're just starting out, don't make the same mistake I made; do this in a language that can handle big data efficiently. Python can barely chug along through this stuff.

5 comments:

  1. How did you do this one?

    Would have to see what could apply, pangeo style, speaking of python.

    ReplyDelete
    Replies
    1. I'm using the Tao's mapping layout rather than an "accurate" geodesic sphere. That seems better for gaming to me even though it makes some of the physics odd. For this particular version of the project, I sequentially added rings of a single 20-mile hex width until I had about a 90-degree coverage, which was 311 rings. Then flipped that over the equatorial axis to give me two pizza-maps.

      This allows me to flip back and forth between the hex coordinate system (which differs pretty significantly from something like Red Blob) and xy coordinates for quick trouble-shooting maps.

      Delete
  2. e.g. along these lines:- https://pangeo.io/

    ReplyDelete
  3. Right, for gaming reading and using that makes sense.

    ReplyDelete
  4. Ha, I started off making mine in BASIC before converting it all to C++, so I think you're doing better than I was!

    ReplyDelete