Jump to content
Sign in to follow this  
Stary

Solution for tile-specific heightmaps horizontal gap line

Recommended Posts

Several terrain available, be it stock or 3rd party, use tile-specific heightmap displacement files, distinguished by being black and white 32x32 or 64x64 bitmaps with _HM suffix. Mostly noticeable are several maps by Gepard and Israel update by me.

 

Currently with "standard" terrain data entries using heightmaps with high amount of displacement causes ugly strip of emptiness around the border of high detail terrain mesh, and the farther one not displacing it's mesh. Most noticeable example is modded Israel terrain.

 

To fix this, change this entry in terrain's _data.ini:

 

[HeightOffset]

LowDetailMesh=-1.5

WaterMesh=0.8

 

for example set this value to

 

[HeightOffset]

LowDetailMesh=-100

WaterMesh=0.8

 

this setting "moves" the far terrain mesh down by specified value, thus eliminating the gap caused by _HM files additional terrain movement. When the terrain area closes to viewpoint (or simply: You) the far terrain is replaced by higher resolution global heightmap, with tile-specific additional detail where specified by creator.

 

The above is example of course, generally the value you lower the "far, outer terrain" mesh should be similar to the highest displacement value used by _HM files on the map -refer to texturelist entries in specific terrain data. Values unit seems to be meters? feet?

Share this post


Link to post
Share on other sites

Very good fix Stary. :good:

Happy to get rid of the white line at the distance..

Share this post


Link to post
Share on other sites

it's good for mostly montaineous terrains that use these additional _HM files for detailed meshes, note that might be not so for open sea, but as the terrain switches from lower resolution to better one in the distance, hopefully not so obvious.

Share this post


Link to post
Share on other sites

Much appreciated! :good:

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use, Privacy Policy, and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..