Search Unity

Tilable terrain that blends

Discussion in 'General Graphics' started by Haravin, Aug 21, 2017.

  1. Haravin

    Haravin

    Joined:
    Aug 21, 2017
    Posts:
    6
    I'm trying to make a terrain system, which has tiles of different things (rock, cobblestone, grass, dirt, etc). I got it working, and even tessellating. The only thing I need now, is a way to make the tiles blend together where the texture changes. This is very confusing to me, and I don't even know where to begin.

    Before you post an asset pack link, understand that I'm not buying anything. I'm just doing this for fun.

    Here is a picture of the system.

    https://i.gyazo.com/0f42b8c11e2f603caaab134d39ac0697.png

    I want it so that the sand and the cobblestone will blend together at the seam.
     
  2. Haravin

    Haravin

    Joined:
    Aug 21, 2017
    Posts:
    6
    I think im going to make a custom mask shader with splatmaps.

    https://i.gyazo.com/1c47662b52a2b67c5963a41a2b3275cd.png

    EDIT: Did it! Now I just have to code some sort of architecture to manage stored tiletypes and heights instead of building it procedurally. I'm thinking of making an SQL database or something. Then, for each tile, it can look at the neighboring tiles, and use that info to determine what textures to use for border blending.
     
    Last edited: Aug 21, 2017