Tiling a Sphere with Hexes

It is not possible to tile a sphere with regular hexes. However, we can map a wrapped grid to a sphere in such a way that it looks like the sphere is tiled with hexes.

The basic idea is to use a wrapped hex grid (using a parallelogram wrapping). A section inside the parallelogram – the “window” – is projected to a sphere (the projection we use is an approximation). For best effect, this section should display approximately half the cells in the width, and half the cells in the height. If we have more cells along the width, it will feel like the sphere has more than 360 degrees as we rotate it along the vertical, and similarly for the height. To make it possible to rotate the sphere, we simply move the grid, reprojecting the window each frame. Once we have moved exactly one cell, we snap the grid back to the original position, and move all the cell textures one cell to the direction of rotation. (This is similar to the scrolling example).

Even though this may feel like a sphere in certain respects, it is really topologically equivalent to a torus. One way in which it is different from a sphere is the following: if you go all the way around north, over to the other side, then going south, back to the front, going up, you will end up back where you started, as if it was a sphere. Same if you go around horizontally. However, unlike a sphere, these two paths will not cross!


Grids is a Unity asset that allows you to explore grids in strange ways like this.

1 thought on “Tiling a Sphere with Hexes”

  1. Pingback: Don't Miss: 20 fun facts about hex grids - GeekTechTalk

Comments are closed.

Scroll to Top