Page 9 of 9 FirstFirst ... 789
Results 121 to 127 of 127

Thread: Editing Height Maps

  1. #121
    Refugee
    Join Date
    Mar 2017
    Posts
    8
    Rep Power
    0
    I've recently got into modding existing worlds in 7DTD. Editing the biomes, is very easy, but my attempts at editing the height maps have not worked. In the original video posted it mentioned editing the TGA file, but I'm running A17.3 and it only exports the main DTM file (Which I haven't been able to edit). I was wondering if there is a different way to edit the height maps without the TGA file?

    My apologies if it was posted somewhere on this thread earlier, but I hadn't found any information yet.
    Last edited by dalves69; 06-03-2019 at 06:44 PM.

  2. #122
    Guppycurian Forum Whore Guppycur's Avatar
    Join Date
    Apr 2014
    Location
    Enemy for life
    Posts
    22,362
    Rep Power
    1
    Photoshop allows editing of .raw files, if that helps.

  3. #123
    Refugee
    Join Date
    Mar 2017
    Posts
    8
    Rep Power
    0
    I know I've tried using Gimp and some other editors. I thought I tried using Photoshop yesterday, but I may be wrong... By default, all of the computers that I've tried this on see the DTM.raw file as a sound file.

    I didn't know if it was possible to create a new DTM.raw file from the existing genHM.png or poiHM.png files I currently have.

  4. #124
    Guppycurian Forum Whore Guppycur's Avatar
    Join Date
    Apr 2014
    Location
    Enemy for life
    Posts
    22,362
    Rep Power
    1
    Tfp hasn't settled on a method yet, so we are all in the dark.

  5. #125
    Hunter backdownhipi's Avatar
    Join Date
    Aug 2017
    Posts
    106
    Rep Power
    1
    at the launch of a17, it was possible, albeit schetchy, they have since removed that, and reported rwg broken, but will fix in a18. nitro does have an option to import the genhm.png and poigm.png and will generate you a raw file

  6. #126
    Refugee
    Join Date
    Mar 2017
    Posts
    8
    Rep Power
    0
    I tried opening the DTM.raw file in Photoshop and really wasn't sure what I was looking at. I was expecting something like the POI Height Map, but it looked like there was much more information in there.

    I have been using NitroGen and love it. Are there any links or information showing how to import the genhm.png and poihm.png to export the DTM.raw file?



    (Actually I'm doing some testing with NitroGen now and may have figured out how to do this.)
    Last edited by dalves69; 06-07-2019 at 10:41 AM.

  7. #127
    Refugee
    Join Date
    Jun 2019
    Posts
    3
    Rep Power
    0
    I want to share a way to edit dtm.raw without Photoshop, since I didn't want to pirate or buy it. It is definitely a clumsy way, so If someone knows easier way to do it with free software, I would be very glad to know!
    Working with dtm.tga not allowing to edit already generated map + integrated smoothworldall command not always work nicely for roads.

    I do it with GIMP + Rawtherapee plugin.

    So when you are opening dtm.raw / dtm_processed.raw in GIMP you should check "show all files" and in "select file type" choose "Raw image data". In the next window these parameters:

    Image Type: Grayunsigned 16 bit Little Endian
    Width & Height according to your world size (let's take for example 8192 & 8192)

    By default map is vertically flipped, so you shoud flip it before & after the editing (Image - Transform - Flip Vertically) and also set up grayscale mode: "Image - Mode - Grayscale". If you want to create heightmap from scratch, you should also check "Image - Precision - 16 bit integer".

    Then save as .tiff:
    Export As: Select File Type - TIFF image (uncheck everything in Advanced window). In the end .tif file should be the same size as .raw file (134.2 MB for 8192x8192 world)

    Next process is basically converting this .tiff to .raw file:

    Open .tiff the same way you open .raw (show all files & select file type - raw image data), but with these parameters:

    Image Type: Indexed
    Offset: 8
    Width is double from the original (in this case 16384), Height as it is (8192).

    And then export that as "raw image data" with .raw prefix.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •