Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Trying to make a 4 splatmap but can't get the same result as terrain shader

Discussion in 'Shader Graph' started by CosmosBear, May 28, 2019.

  1. CosmosBear

    CosmosBear

    Joined:
    Aug 2, 2012
    Posts:
    67
    Hello again,

    I needed to convert a terrain into a mesh, so I found a super tool on the store called Mesh Materializer. It convert the terrain to a mesh and export a splatmap (so it can be used as a mask to blend 4 textures set).

    So all that remain was to create a shader graph that would recreate what the terrain should looks like.
    Here is the Albedo part of the shader, I also attached the full graph file to the post, watch out however, it's a bit messy.
    graph.jpg

    It mostly looks like what I expeted except where the color mix on the map: anyway this gif might speak for itself a bit.

    Onoff.gif
    This is the splat map RGB then alpha:

    Webp.net-gifmaker.gif
    So now I wonder is the splatmap the problem, do Mesh Materializer export a broken map or is my graph totally wrong?

    Any of you ever did a shader using this kind of technique?

    Thanks
     

    Attached Files:

  2. CosmosBear

    CosmosBear

    Joined:
    Aug 2, 2012
    Posts:
    67
    I'll ask another question then,
    is there a built in tool to export a splat map/ control texture from a terrain?
     
    Last edited: Oct 21, 2019
  3. teutonicus

    teutonicus

    Joined:
    Jul 4, 2012
    Posts:
    70
  4. CosmosBear

    CosmosBear

    Joined:
    Aug 2, 2012
    Posts:
    67
  5. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Mandatory not overrated IMHO. Some great code there to copy and alter for your own tools as well.
     
  6. jubaerjams8548

    jubaerjams8548

    Joined:
    Jun 8, 2020
    Posts:
    41
    Try upscaling the resolution of splatmap like 2048x2048