Depth map seems to be doing literally nothing

Discussion in 'Content Creation' started by Braindead, Apr 19, 2014.

  1. Braindead

    Braindead
    Expand Collapse

    Joined:
    Jan 22, 2014
    Messages:
    125
    I'm making a map and so far it seems easy enough, but I've run into some problems using the depth map. I've sifted through the internet and every single thread tagged 'depth map' which helped me learn how to actually create it, but it seems to be doing absolutely nothing.
    I've looked over everything multiple times but I just can't seem to tell what the problem is.

    The depth map is 2048x2048, the same size as my map.
    I created it in photoshop, set to 8 bits per channel greyscale, with only 1 channel, and no normal map.
    At first I exported the terrain file and inverted the images b&w to make the muddy areas deep, using levels to make them grey instead of black.
    This did nothing, but I thought it could be something to do with the image being backwards as it seems flipped when you export the terrain.
    At this point I made the whole image slightly grey which I assume should make the whole ground slightly deep, but instead it did nothing.:confused:

    I've tried all the things I could think of, and here I am. I'll insert some images and hope someone can offer any advice.:(
    Also, the depth file .pngs were saving at about 20kb, and are now saving at about 4000kb... I'm not sure why this is, but neither of them work.

    Capture1.JPG Capture2.JPG Rally.ter.depth.jpg Rally1.jpg


    First Post!
     
  2. ultranew_b

    ultranew_b
    Expand Collapse

    Joined:
    Nov 12, 2013
    Messages:
    140
  3. Braindead

    Braindead
    Expand Collapse

    Joined:
    Jan 22, 2014
    Messages:
    125
    I did already read through that, but the issue seemed to be different, and the working file that a user posted is for a different map size so I couldn't test it out. :(
     
  4. BlueScreen

    BlueScreen
    Expand Collapse

    Joined:
    Apr 5, 2014
    Messages:
    624
    Same problem here. I'm saving from Photoshop CS6 as 8-bit Greyscale, single channel, 2048x2048 (my map's size) PNG and it does nothing.
     
  5. Braindead

    Braindead
    Expand Collapse

    Joined:
    Jan 22, 2014
    Messages:
    125
    Identical problem, nice to know I'm not alone. Hopefully someone can come up with a solution. Wondering if it has something to do with Photoshop/CS6:confused:
     
  6. Miura

    Miura
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    311
    Have a look at the console or torque3d.log after loading the map. It should show if the depthmap was loaded or if the format is wrong.

    Most likely there's something wrong with the format. Upload the png here so we can check it.
     
  7. Braindead

    Braindead
    Expand Collapse

    Joined:
    Jan 22, 2014
    Messages:
    125
    Aah! Checking the console was the key to finding out what was wrong. When it searches for the depth map it Isn't searching in the same folder as the .MIS file in levels.
    It seems to be searching in beamng/art/terrains instead of searching in levels and then the map folder.

    I have no idea why this is. In the art/terrains there's a materials.cs and then a folder for my map, but I'm not sure why it's saving it there. My problem is essentially solved, but I'm thinking I'm going to run into some issues if I give the map to others to download. Any ideas?

    Either way thanks for the help :)
     
  8. Miura

    Miura
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    311
    You can move the materials and other files to your map folder, just check the .mis and .cs files in your map and change the file paths if there are references to files outside the folder. References to the game's unmodified default files usually work, but it's better to use everything from the map's own folder.
     
  9. Braindead

    Braindead
    Expand Collapse

    Joined:
    Jan 22, 2014
    Messages:
    125
    Great! Everything's working from it's own folder now. Big thanks for the help. :eek:
     
  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