Jump to content
  • Distant terrain algorithm created a ledge/corner on high terrain


    OGDA

    7dtd seems so have a problem with generating the distant terrain height on maps with an adjusted heightmap set to higher levels (height).
    The distant terrain then renders about 1 to 2 block to high, generating a visible corner where the terrain goes into distant terrain.
    It starts showing lightly at 140 terrain height and ist strongly visible at 185 height.
    The bug is visible on local single player as well as in a dedicated linux multiplayer server.


    Though I use the map generator KingGen in this example, I don't think the bug is related to an external program.

     

    I've tested this with a map generated with KingGen on a terrain height of 42 > no bug visible
    KingGen on terrain height 185 > bug is visible

     

    Default 7dtd map generator height about 42 average > no bug visible

     

    Default 7dtd map generator with adjusted height to average 185 > bug is visible

     

    I used this process to adjust the heightmap but as said I think this has something to do with the algoritm how the distant terrain is generated, not the level data:
    I deleted
    - dtm_processed.raw
    - splat3_processed.png
    - splat4_processed.png
    and generated a heightmap.png (8bit) from dtm.raw with KinGen.
    I adjusted the heightmap.png in Photoshop with Image > Adjustments > Levels
    Setting the lower value of the Output Levels to 150.
    Saved the heightmap.png and converted to dtm.raw.

     

    I've created a zip-file with a screenshot of the bug (screenshot_bug.png), the 7dtd generated map without the bug and the map with adjusted height map and visible bug:
    https://das-kartell.org/files/7dtd/distant_terrain_bug.zip

     

    The 7dtd steam installation was validated, a new game was created for every test.
    I've created around 20 maps with different programs and parameters and the bug always shows when the terrain average height is getting relatively high (>140).
    This also isn't the first alpha to show this bug. I'm generating terrains with this height as I like to create big mines, so that's how I found this bug.

     

    Please inform me, if you need further information.
    Thank you!


    User Feedback

    Recommended Comments

    Hi OGDA, Unfortunately I'm not able to reproduce this without resorting to editing files externally, as per your report. As such I'm unable to make a ticket for this particular issue, as it involved editing those files via manual/third party means. Once we get closer to workshop support this could change, so I've made a note of it to bring up going forward with that in mind. Thank you!

    Link to comment
    Share on other sites

    I remember that in a previous alpha there was a paramter in rwgmixer.xml (or maybe biomes.xml) to set the average map height for the RWG world (something like water level). Unfortunately I cannot find this parameter anymore and I think it was removed, but maybe it would be a possibility for a developer to test this with only 7dtd and no third party tool involved?

     

    Link to comment
    Share on other sites



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...