Project an hex grid on a non flat terrain.

Hi :slight_smile:
I just created a script that generates hex tiles over a flat planes:

But if I create some mountains, obviously, generated tiles remain flat and go inside the terrain.

So I’d like to project textures on the terrain (but also using transparent tiles for selection) like this:

Is it possible project or draw wire textures of hexes? And how? :slight_smile:

Thank you! :smiley:

Use a projector.

Import the Projector asset from unity, there is a Grid example. You just need to swap with the appropriate texture.

I have added a solution in the forums here : http://forum.unity3d.com/threads/casting-hex-grid-over-terrain.265026/#post-1755400