L3DT users' community
Large 3D terrain generator

is there a way?

Got a problem or need advice?

is there a way?

Postby frostic » Wed Aug 16, 2017 3:47 am

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
frostic
Member
 
Posts: 18
Joined: Thu Jun 25, 2015 1:25 am

Re: is there a way?

Postby Aaron » Thu Aug 17, 2017 11:49 am

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.
User avatar
Aaron
Site Admin
 
Posts: 3696
Joined: Sun Nov 20, 2005 2:41 pm
Location: Melbourne, Australia


Return to Help and support

Who is online

Users browsing this forum: No registered users and 12 guests

cron