Search Unity

Draws black stripes instead of texture

Discussion in 'World Building' started by Korveen, Aug 31, 2020.

  1. Korveen

    Korveen

    Joined:
    Jan 24, 2015
    Posts:
    12
    From some moment I can not draw textures on the Terrain normally. When trying to draw something, it fills it with a black scene with artifacts.

    1.jpg
    2.jpg

    When creating a new terrain, everything is fine.

    From my own investigation, I realized that Splat Map is not being updated. and when trying to draw a new texture, it fills with black. How can I fix the terrain? At least how can I draw back on it

    Unity 2020.1 with Terrain Toolbox
     
  2. iceCreamGuy

    iceCreamGuy

    Joined:
    Aug 22, 2020
    Posts:
    4
    i don't know if its still relevant it's some message 2017 about black spots ... maybe it will help

    unity terrain paints your textures based on its splat maps.


    There is one splat map per texture, and the splat map tells the renderer how strongly to paint that texture at that location.


    CTS uses the same mechanism to control where it draws textures as well, but if you let your terrain textures get out of sync with CTS, then you will get black spots.


    What is happening here is that the terrain has a texture, but CTS does now know about it yet, and consequently with nothing to display there, will render it as black, or equally, a texture has been removed, and the splat map has not been updated to paint a new one there.


    There are two scenarios in which CTS can be out of sync with the terrain:

    • You had a terrain with 5 textures, but then applied a CTS profile with only 4 textures
      • The splat maps that determine where the 5th texture would be applied is now missing, but the other splatmaps have not been updated, so that location now has nothing there to tell CTS what to paint - so it is left black.
      • Solution : Paint whatever new texture you want there.
    • You have added a texture to the terrain and painted it but not yet baked the profile to add it to the profile
      • Again, splatmaps out of sync, CTS does not know about the new texture yet
      • Solution : Bake your textures and the new texture will now render.

    The general rule of thumb to avoid this is to always have the same number of textures in your profile as you do in your terrain. If you add or remove textures, then always rebake your CTS arrays.
     
  3. RohitGameDeveloper

    RohitGameDeveloper

    Joined:
    Jan 12, 2020
    Posts:
    1
    I had same issue and i solved it by increasing Resolution of Heightmap resoultion(2048) under terrain setting.
     
  4. anto2b

    anto2b

    Joined:
    Sep 25, 2015
    Posts:
    1
    Hi, I don't find this option to increase the resolution. Can you help me ? it's inside CTS ? Thanks