Adding Depth to Map

Discussion in 'Content Creation' started by themightykasey, Jul 3, 2019.

  1. themightykasey

    themightykasey
    Expand Collapse

    Joined:
    Nov 20, 2013
    Messages:
    423
    ive searched and searched and played with it for years and I cannot add depth to my map.

    1. I have drawn mud on my map
    2. exported the heightmap
    3. created a new png using the mud layer and inserted it into my zip.

    can someone direct me to the proper way for this to be done in 2019, the only threads and videos i can find are from years ago.

    Ive got these, now what to do
     

    Attached Files:

    • 6CBAF141-792A-490E-8DBF-4215A8DD1C98.jpeg
    #1 themightykasey, Jul 3, 2019
    Last edited: Jul 3, 2019
  2. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,683
    Your steps are correct.
    Make sure that the file is named [name_of_.ter].depth.png
    Ex:


    Also, the PNG must be:
    • 8-bit
    • greyscale
    • have no alpha
    • same size of terrain
    Black is max depth (of the groundmodel), white is minimum depth (of the groundmodel)
     
  3. themightykasey

    themightykasey
    Expand Collapse

    Joined:
    Nov 20, 2013
    Messages:
    423

    i successfully created depth. i made it black as a test. its fairly deep however it is not in the correct spot on the map. its about 20 meters off from where i drew the mud.

    the hole is where it gave depth and the mud track is where its supposed to be. this map is made from derby. both numbers of 1024 and 2048 appear. but the heightmap spawned as 2048 and 1024 only appears in info.json

    the heightmap is black, yet this is about as deep as it goes, is there a way to fix this once location has been fixed?
     

    Attached Files:

    • DesktopScreenshot20190703-02163015.png
    • DesktopScreenshot20190703-02282352.png
    #3 themightykasey, Jul 3, 2019
    Last edited: Jul 3, 2019
  4. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,683
    The texture must be 2048x2048, as the have this size:


    Also, if it's still not right, try to invert vertically your texture.
     
    • Like Like x 1
  5. themightykasey

    themightykasey
    Expand Collapse

    Joined:
    Nov 20, 2013
    Messages:
    423
    As you can see in my 1 file upload, it is indeed 2048. I only have tried a full 180° turn assuming it was flipped. Ill try a 90° turn this time, although the depth seems to just be moved instead of inverted in anyway
     
  6. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,683
    By invert, I mean mirroring it vertically / flip it vertically, not rotating
    Some terrains uses Y inverted heightmaps, and that may be your case, if your depthmap is not matching
     
  7. themightykasey

    themightykasey
    Expand Collapse

    Joined:
    Nov 20, 2013
    Messages:
    423
    that was it thank you, one more thing, how to increase the max depth, and what is the best way to make the transition from dirt to mud without the ridge
     
    #7 themightykasey, Jul 3, 2019
    Last edited: Jul 4, 2019
  8. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,683
    The max depth depends from the groundmodel itself.
    Some grounmodels have higher depth limits than others, you cannot change that.
    For transition, do a gradient, using the various shades of grey.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice