I need help understand terrain depth

Discussion in 'Content Creation' started by KennyWah, Jun 9, 2014.

  1. KennyWah

    KennyWah
    Expand Collapse

    Joined:
    Jan 16, 2013
    Messages:
    2,667
    I have a file for terrain depth.. how do I assign it to the mission file. my mud is called "Mud" and after restart save and all that jazz it never has depth please help I've looked all over and nothing I can find helps me.

    edit just did an 8 bit graysacle png for (mapname.tern.depth.png) shaded the areas where there was mud as dark gray and nothing... how can I add a depth file to the mission file

    (USED GIMP)
     
    #1 KennyWah, Jun 9, 2014
    Last edited: Jun 9, 2014
  2. LJFHutch

    LJFHutch
    Expand Collapse
    Environment Artist
    BeamNG Team

    Joined:
    Aug 4, 2012
    Messages:
    667
    It has to be called the same thing as the actual .ter your mission uses, check the DRI one out and do the same but change the name to suit your terrain file. It also has to have no alpha channel.
     
  3. KennyWah

    KennyWah
    Expand Collapse

    Joined:
    Jan 16, 2013
    Messages:
    2,667

    I name it the same as my map name like ie: temp.tern.depth.png if the .tern was temp.tern.
     
  4. LJFHutch

    LJFHutch
    Expand Collapse
    Environment Artist
    BeamNG Team

    Joined:
    Aug 4, 2012
    Messages:
    667
    Yeah. Another thing to check is the actual location of your .ter, make sure it's in the level folder. If you create a new terrain it will put it in \levels.

    So:
    *correct name, eg "yourmap.ter.depth.png" (the name is of the .ter file, not the actual map; they can be different)
    *greyscale (RGB will make it completely solid regardless of the actual pixels - the mode has to be set to RGB, it has nothing to do with the colour of the pixels)
    *no alpha channel (it's the alpha channel that's important here, even if there isn't any transparency in the image itself the presence of the channel will break things)
    *same size as terrain texture (I think? make it the same to be on the safe side)
    *white is solid, black is something like 10m deep)
     
  5. KennyWah

    KennyWah
    Expand Collapse

    Joined:
    Jan 16, 2013
    Messages:
    2,667
    well... let's just say I've done that from the start.


    sorry but I don't understand, do I make it RGB or Grayscale? also idk how to set it to 8 bit export in gimp.:confused:
     

    Attached Files:

    • ss (2014-06-09 at 05.47.05).png
  6. KennyWah

    KennyWah
    Expand Collapse

    Joined:
    Jan 16, 2013
    Messages:
    2,667
    Rather Large Question Mark (Above)

     
  7. Miura

    Miura
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    311
    I think he meant greyscale, not RGB. I don't use Gimp, but apparently it's the same as in Photoshop, Image > Mode > Greyscale. Should be 8 bit when saving as PNG.

    If it still doesn't work, post the image here.
     
  8. KennyWah

    KennyWah
    Expand Collapse

    Joined:
    Jan 16, 2013
    Messages:
    2,667
    I'll try that soon and post the results
     
  9. jasperik

    jasperik
    Expand Collapse

    Joined:
    Oct 20, 2013
    Messages:
    13
    i have the same issue with understanding this, i copied the east coast map and flattened it so i could make my own map.
    i olso have the terrains depth PNG which i made completely white but now if i color some sand paths grey they have no depth, can someone please tell me what i need to do from start to finish.

    i have the white PNG depth file (attachment) opened in photoshop with some grey areas, now how do i get those grey areas it to work as depth in-game? that is all i need to know

    thanks in advance for the help people!
     

    Attached Files:

    • theTerrain.ter.depth.png
  10. KennyWah

    KennyWah
    Expand Collapse

    Joined:
    Jan 16, 2013
    Messages:
    2,667

    I never had any luck... =S
     
  11. jasperik

    jasperik
    Expand Collapse

    Joined:
    Oct 20, 2013
    Messages:
    13
    i Call upon you great LJFHutch, to grant me the pleasure of a sollusion to my predicament.
     
  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