Search Unity

  1. Get the latest news, tutorials and offers directly to your inbox with our newsletters. Sign up now.
    Dismiss Notice

[Terrain] - control slope steepness

Discussion in 'World Building' started by Gushgarak, Sep 30, 2020.

  1. Gushgarak

    Gushgarak

    Joined:
    Mar 21, 2018
    Posts:
    12
    Hello fellows Unity users.

    I would like to know if it's possible to control (Brush mask maybe) the slope "steepness" when using "Set Height" tool on a Unity Terrain.

    By default the bigger the height - the stronger the slope - see print screen below (on the left "Set Height" value is set to 6 while on the right it's set to 50)

    However for a specific use case I would like to have almost vertical (if not fully 90 degree) slopes when using Set Height but on small heights.

    I've tried using brush masks (notably the "slope" one) but it has no visible effect whatever the value or curve I input.

    Please I beg for you help - I am stuck with that since a good week.

    Many thanks for your kind assistance.

    upload_2020-9-30_23-22-18.png
     
  2. Flavelius

    Flavelius

    Joined:
    Jul 8, 2012
    Posts:
    820
    it's not possible to have fully vertical slopes as the vertices are spaced at a certain distance, the lower the height the less steep the slope. You may get close by using a strong subdivision (small pixel error, high resolution) and a large height.
     
  3. Gushgarak

    Gushgarak

    Joined:
    Mar 21, 2018
    Posts:
    12
    Thanks for taking the time to answer

    Indeed after some more research I found that its impossible because of how the heightmap work (having a verticale slope would mean that two vertices at the same place would have 2 different height which is impossible)

    Again thanks for helping.
     
unityunity