I have run into a problem where i would really need to use a texture with an irregular size.
When I try to import the texture in WED I get an error message saying "Bad Texture Size", and the texture will not import.
The reason I need the texture to have one of its sides of a different size is this:
I am making a turn based strategy game that has a map consisting of many cells you can move along (circles). The distribution of these circles is kind of like a hexagon tiled board game.
Above you see an example of a 5x5 grid for my game.
I have made a couple of textures that would be "tiled" over the floor of my level.
The height is 32 wich is a power of 2, but the widths of these textures are 54.
Example tile 1
Example tile 2
Since they are regular circles the height and width of each one is always the same (32), but since each column of circles is slightly inside the space of the previous column the width of the "texture to tile" can never be exacly double the size of the height (always has to be a little less than double).
Thats why I can only get one of the sides to be of a power of 2 (32x54) instead of 32x64.
An easy solution would be to not use tiles and use a premade texture of my cells, but I would really like to have huge randomly generated maps. So I prefer to use tiles in order to avoid having to use huge textures (probably way too big for use), and also because since it is randomly generated I will not know the exact size of my level till it is generated at runtime.
Another solution that does not meet my needs would be to use tons tons of sprites, I have tried this but due to the huge size of my map that solution is not viable (machine really strats to slow down when there are thousands of circles everywhere!).
Can anyone think of a solution to my texture problem?
Is there any way to use a texture for the level blocks that is not a power of 2?
(I have already done this loading irregular sized textures for panels in sed, but I canot figure out how to do this for levels)
Any help would be greatly apreciated
