How do the corner pieces in tileset autotile 3x3 (minimal) work?

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

I read the docs, and my understanding is that I don’t need to place the corner bits since they can be replaced by placing the edge bits on both sides. But I can only make 16 combinations with this. How do I get 47 (or 48? I saw that number sometimes too) different bitmask combinations?

I have one center tile, one single tile, four tiles that have only one neighbor, six tiles that have only two neighbors, and four tiles with three neighbors.

Edit: The corner bits work differently than the edge bits but I can’t figure out how. :expressionless:

:bust_in_silhouette: Reply From: eod

Corner bits will work the same as edge bits once you mask them correctly. Presume there is nine “tiles” in each square (in Godot, select 3x3). Here’s a typical 47 combination:

enter image description here

What do you mean by mask them correctly? So a corner bit can’t just be replaced by two adjacent edge bits? There doesn’t seem to be any singular edge bits in the image, so is that not possible with the minimal 3x3?

exuin | 2020-09-05 06:39

same here, 3x3 or minimal does not work as expected

phil1234 | 2021-05-16 19:02

Hi, it’s been like 8 months. I’ve figured out how corner bits work now. 3x3 minimal doesn’t match patterns that have a corner-bit that doesn’t have two edge-bit neighbors and instead just reuses another tile. So you need to place corner bits only when they have two edge-bit neighbors.

exuin | 2021-05-16 19:24

I posted my own thread

AutoTile 3x3 (or minimal) not working at all - Archive - Godot Forum

it’s not only about corners, the whole autotilemap is not working at all for me

phil1234 | 2021-05-16 21:09