Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Pixel Texture Terrain painting

Discussion in 'Editor & General Support' started by HonKasumi, Jun 4, 2018.

  1. HonKasumi

    HonKasumi

    Joined:
    Apr 25, 2018
    Posts:
    44
    Im new at Unity3D and i have a specific game i want to make,, but im on a point in my project that i cant help myself
    My quastion is how can i paint my terrain in pixel style,, i have a grass pixel i made and i want to brush it my terrain soo it looks like i pixel painted every pixel on it, for example Delver has what im looking for : https://image.ibb.co/cpjxLy/1wssffg.png i want to paint my terrain exact the same, and i dont want to paint my terrain like this : https://image.ibb.co/iV7HLy/terrainissueswant.png

    soo is there a way or a plugin i can buy that allows my to paint my terrain with a pixel grass i made??
     
  2. OneManBandGames

    OneManBandGames

    Joined:
    Dec 7, 2014
    Posts:
    207
    If you have only one grass texture that you want to put on your terrain, it is very simple:

    When you have your pixel grass texture ready, you only need to set the filter mode to "Point (no filter)" in the texture import settings and then add it as terrain texture. It should then be drawn pixelated just as in the delver screenshot.

    When you want to have multiple textures, it will become difficult: per default Unity will blend two different textures into each other, like this:



    And this would ruin your pixel style, because you want a pixel-sharp "hard" transition from your rock to your grass texture. So you would either need to develop your own terrain shader or try to find a solution from the asset store that does this. I do not know any direct pixel-style shader for terrains, but I know that CTS and Megasplat support height blending. It could maybe work if you use a pixelated height map for blending so that your grass is cut out just in the right spots when it is above a rock texture, but that would probably require a lot of trial-and-error with the height maps until everything works.
     
  3. boaheck

    boaheck

    Joined:
    Jan 25, 2014
    Posts:
    4
    A bit late on this but in the project tab find your terrain asset,click the arrow beside it and set all the SplatAlpha texture's filtering to point. upload_2018-10-29_0-50-22.png
     
    Hawkuarine and s_fleming_96 like this.