Can't align national borders to grid
Posted: Fri Nov 29, 2013 9:15 pm
(This post is for a 128px wide, "non-iso" hex tileset)
I showed in another post that the location of the hotspot constrains the dimensions and location of my base tile images. But I've come across about the national border images that makes it impossible to line the grid image up with my tile images. To illustrate, I used a semi-transparent 128x128 box with a stronger 1px border around the top half of the image. I figured this should help find where I would be able to place the grid lines. Here's the result:
Visible are the national borders (red) and city outline (black). Immediately I noticed a critical difference. The city outline sprites include the bottom half of the 128px test image. The national border, however, does not. Keep in mind that both border types are pointing to exactly the same part of the same image in the spec file.
Now look at this: Yellow boxes are the grid sprite for the nearby hex with blue lines. The marked sprites will be for the left edge of their hexes. To be able to draw a line on the left edge, the sprite box would need to completely overlap with that edge. This is the case for the city outline, but clearly not the case for the national border. Thus it appears to be impossible to draw national borders for a 128px tileset. I think hex2t avoids this simply by having small enough hexes that it's not affected.
I could use offsets and image edits to move the hexes around, of course, but that moves them out of alignment with the tile hotspot, which can't be moved. So I seem to be stuck.
Anyone out there know how to deal with this? Or am I off to file another bug report?
I showed in another post that the location of the hotspot constrains the dimensions and location of my base tile images. But I've come across about the national border images that makes it impossible to line the grid image up with my tile images. To illustrate, I used a semi-transparent 128x128 box with a stronger 1px border around the top half of the image. I figured this should help find where I would be able to place the grid lines. Here's the result:
Visible are the national borders (red) and city outline (black). Immediately I noticed a critical difference. The city outline sprites include the bottom half of the 128px test image. The national border, however, does not. Keep in mind that both border types are pointing to exactly the same part of the same image in the spec file.
Now look at this: Yellow boxes are the grid sprite for the nearby hex with blue lines. The marked sprites will be for the left edge of their hexes. To be able to draw a line on the left edge, the sprite box would need to completely overlap with that edge. This is the case for the city outline, but clearly not the case for the national border. Thus it appears to be impossible to draw national borders for a 128px tileset. I think hex2t avoids this simply by having small enough hexes that it's not affected.
I could use offsets and image edits to move the hexes around, of course, but that moves them out of alignment with the tile hotspot, which can't be moved. So I seem to be stuck.
Anyone out there know how to deal with this? Or am I off to file another bug report?