1

I am a beginner at graphics and I was wondering if anyone had any experience in programmatically splitting isometric tile sheets, in particular Reiner Tile Sheets Here is an Example Image:

img.

I have been splitting it using guides by hand in gimp but there is some sort of pattern going on that I feel can be used to programmatically split this. Before I tried to make my own, I wanted to see if there was any such algorithms premade / software that could do it currently. Its not a simple grid that needs to be cut with same width and height for each one. Thanks for the help!

Spektre
  • 49,595
  • 11
  • 110
  • 380
JFJB Games
  • 69
  • 5

1 Answers1

0
  1. Some stuff for thinking and read

    First take a look at:

    for some inspiration. Especially take a look at (3. tile editor) part. The operations described there are exactly what you are looking for (to add the missing stuff you are doing manually right now).

    However your tile set is oriented differently so the masks will be slightly different ...

    In case you want to extract tileset from image you would need something like this:

    And also take a look at this (for even more inspiration):

    The pixel perfect O(1) mouse selection at the end is a good idea to implement.

  2. Your tile map

    so you have a tilemap image but you do not have the tiles boundaries. So first identify tileset resolution... There might be more tile sizes present so you need to know all of them. Your image is 256x1024 pixels and from a quick look you have 32x32 pixels tiles. Most of the tiles are 64x64 however they are constructed from 4 tiles of 32x32 pixels. The white color is the transparent one. So you just divide the image to 32x32 squares or regroup to 64x64 ones.

Spektre
  • 49,595
  • 11
  • 110
  • 380
  • Awesome thank you! I will look through this stuff. I implemented my own algorithm for object recognition which has a fairly good accuracy at recognizing objects with no need to rearrange anything. I'll check out the information you posted to see which works better for me, thank you again for the help – JFJB Games Oct 24 '20 at 09:12