Page 1 of 1

is there a way?

PostPosted: Wed Aug 16, 2017 3:47 am
by frostic
Hello, Im wondering if there is a way to select a spacific range in the hightmap and set it to flat.
i have an island in working on and want to flatten out all the surrounding areas 2 layers deeper than the blue water map lines.
in this image i traced what area i want it to select and flatten. how can I do this?

as you will see in this mask i made(second Image) the black area is all of the terrain i want flattened and pushed deep like the ocean drop off to really deep waters.


Image
Image

Re: is there a way?

PostPosted: Thu Aug 17, 2017 11:49 am
by Aaron
Hi frostic,

Yes indeed, there is a way.

Firstly, you need to download the 'HF_clip.zs' script file that is over here:

http://www.bundysoft.com/wiki/doku.php? ... ts:hf_clip

Then, load your project in L3DT, and select the 'Extensions->ZeoScript->Run script file...' menu item.

Select the 'HF_clip.zs' script file you downloaded.

Select 'Clip below'.

Enter a threshold elevation of -100, or whatever elevation at which you want to start the underwater clipping.

Enter a target elevation of -200, or whatever elevation you want the clipped pixels to go to.

The calculation should now run, and show you the updated heightfield.

If you are unhappy with the output, please use the 'Undo' button or press CTRL+Z to undo the calculation.

Please let me know how it goes.

Best regards,
Aaron.