RanseiLink icon indicating copy to clipboard operation
RanseiLink copied to clipboard

Minimap Generator

Open Deijin27 opened this issue 1 year ago • 2 comments

What would you like?

The minimap images in #35 seem to follow a determined pattern, such that i think it would be pretty easy to generate them from a simple 2d image.

User provides a png where black pixels indicate void, and white squares indicate terrain. The tool scans this inage they provide and creates the minimap facing each required direction.

Deijin27 avatar Nov 26 '23 00:11 Deijin27

I've looked more closely at thede minimaps and annoyingly there's unpredictable imorefections around the edges. This means one of three things:

  1. They used some kind of 3d renderer to generate these and the imperfections resulf from lighting
  2. They fully manually created these with great difficulty
  3. They automatically generated a basic thing and added imprefections manually.

Option 3 is what I'm gonna go for with this generator. It will generate the minimap in a predictable and simple manner, then the user can go in and add imperfections if they want.

Deijin27 avatar Feb 01 '24 00:02 Deijin27

I've developed a mini proof of concept. It's definitely possible to create accurate (except for imperfections) rectangular minimaps.

It's concerning how many special cases like jagged edges, seeming elevation changes. I don't know if generating all the built-in minimaps is reasonable. Maybe I just leave it at this rectangle generator for now and users can use them as a base to get perspective right, then edit to their actual map shape.

Deijin27 avatar Feb 03 '24 16:02 Deijin27