Search Unity

Bug Black terrain texturing glitch

Discussion in 'High Definition Render Pipeline' started by Adastour, Dec 16, 2022.

  1. Adastour

    Adastour

    Joined:
    Jan 6, 2021
    Posts:
    48
    Hello!

    I've been working on terrain for my unity game in HDRP 2022.1.0b2.
    However, when adding cliffside texturing, there's a weird black collection of squares associated.
    After some testing, I could paint over the squares with a different texture, and I can recreate this effect by applying the same texture to the terrain.

    Any help is much appreciated
    Have a wonderful day
    -Adastour
     

    Attached Files:

  2. HIBIKI_entertainment

    HIBIKI_entertainment

    Joined:
    Dec 4, 2018
    Posts:
    595
    Hey,
    Your texture to splat for your terrain is creating a NaN.

    You'll be able to see this if you use the Render debuggers 'NaN mode' it'll come up as red.

    How are you painting the terrain layer to the splat? Manually without modifiers?
    If so, then it's likely the textures or terrain shader.

    Many auto terrain systems are unclamped so they can also introduce this where they're not applying the right channel density.

    These are usually good indicators of how the NaN is being applied.

    You can check your terrain layer textures, terrain shader and also the terrain splat RGBA channels to see how it propagates hopefully helps solve where it's coming from.
     
  3. JackiechanMFG

    JackiechanMFG

    Joined:
    Oct 27, 2015
    Posts:
    3
    All my terrain has these black squares when I try to paint any textures
    upload_2023-9-1_10-59-56.png