So I'm trying to get a hex grid to tile correctly on a 512x512 texture. I've experimented a lot and I'm starting to think it's not possible. If anyone has a clue how to do this I'd greatly appreciate it.
It's possible. you need an odd number of hex's horizontally and vertically, which means it may look squished. But this can be fixed within your shader or accounted for in your UVs, I imagine.
Thanks guys! Yeah cman2k, I think that is the best solution. For some reason I didn't think about stretching it a little bit and then fixing it in the UV's.
Sorry to bring this thread back up, but I came across the same problem, and found another solution. Thought I'd share it here for future reference, if anyone else tries to do this.
It's a tricky problem, but by rotating your whole hex-grid 15 degrees (or increments of 15 degrees) it's possible to have a tiling texture with equal-sided hexagons only.
On the left is the actual texture.
This is good mostly for situations where you don't want the tiles to line up with anything specific (otherwise you'll have weirdo UVs most of the time, to align them to the tile angle in the texture), I'm using it for a circular room for instance.
Replies
and with colors
You guys are the best.
It's a tricky problem, but by rotating your whole hex-grid 15 degrees (or increments of 15 degrees) it's possible to have a tiling texture with equal-sided hexagons only.
On the left is the actual texture.
This is good mostly for situations where you don't want the tiles to line up with anything specific (otherwise you'll have weirdo UVs most of the time, to align them to the tile angle in the texture), I'm using it for a circular room for instance.
EDIT: lol, i just made the same as your first pic
Very clever!