Tile placement to test all 47 tiles for a TileSet with autotile bitmask 3x3 minimum

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By exuin

Hi, I’ve made all 47 tiles. I want to be able to test them all and see if they tile correctly, but I can’t figure out where to place the tiles in order to test all 47. I tried counting the different tiles but I lost count after like 20 or so different tiles.

Edit: Wait, I just realized that I probably don’t actually have all 47 tiles. I mean, I have 47 tiles. But they’re not the right tiles. Anyway the question still stands.

Edit 2: I think I managed to place all of the tiles, but there are still some combinations missing? How many do I need if it’s not 47?

Edit 3: Never mind, I just had duplicate tiles. I have 47 now.

:bust_in_silhouette: Reply From: klaas

i dont know if this helps you. I just uploaded my litle tool i wrote to calculate all possible values.

This isnt a universal tool but may help. The tool also creates some match-case code to select the right tile and transform it. The reduce to core function even further compresses the number off tiles, but that was especialy for my usecase.

Thanks for the answer, but the tileset I’m making isn’t one-bit so I don’t think the tool will help in this case.

exuin | 2020-09-04 17:12

Ok. Dont know what you mean with one-bit tileset. My tool is designed for calculating all possible cases of surounding tiles, Furthermore does it check if cases can be covered by mirroring and/or rotating allready tested cases.

My calculation sums up to 51 individual tiles.

klaas | 2020-09-04 18:49

I thought that the grid that appears on the right represents a one-bit (two color) tile? If not, what does it represent?

exuin | 2020-09-04 19:10

You have to hit calculate on the left for general 3x3 tilset calculation.

the right side is somewhat complex to descripe.
When my map is created i try to make it look more interesting. So i design some bigger tiles that can replace common tile-setups.
I can set the size of the area for example 4x4 then i set the case it has to match with the “fill” tool. Then i paint the tiles with “repl” wich should be replaced by the bigger tile.
Then i can set some flags and out comes a name for the tile under “pattern”. My engine can then search the map for patterns that match the pattern-name and replace it with the specialy designed bigger tile.
But as i said, this is a very special feature for my usecase.

klaas | 2020-09-04 19:18

Oh alright thanks for explaining

exuin | 2020-09-04 19:23

:bust_in_silhouette: Reply From: exuin

I figured it out. I had 27 shapes in total, most of which were just transformations of the same shape.
An image of all the 27 shapes