Jump to content

Terrain heightmap export-import


Go to solution Solved by diedir,

Recommended Posts

Posted

Hi Josh,

Do you plan exporting- importing heightmap terrain ?

It would be much (much...) easier to paint a 16.raw map with external software.

I need to reproduce real terrain, this feature would be a must!

thank you

AMD Ryzen 5900HX - Nvidia RTX 3070 - 32 Go - 1To SSD - W11

Posted

In the editor: 

  1. Create the Terrain with the specifc size eg: 512 * 512
  2. Select the Terrain and choose the Terrain edit mode (the most left icon, where are also rotate and move controls)
  3. In the right view you now have an open Terrain-Tab where you can load or save a heightmap.

If the heightmap is not visible there are some things to do.

  1. The heightmap imported might not match the dimonsions you have created the terrain with.
  2. If the scale is not high enough: 
    1. Got to the Map-Tab 
    2. Select the created Terrain
    3. Change the y-scale to something like 100.0 or 300.0 depending on your imported heightmap.
  • Windows 10 Pro 64-Bit-Version
  • NVIDIA Geforce 1080 TI
Posted

There is a Load button in the terrain panel. You must have a terrain selected for it to know which terrain to apply the heightmap to.

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted

If you have any problems please upload the terrain heightmap you are using so I can try it.

My job is to make tools you love, with the features you want, and performance you can't live without.

  • Solution
Posted

So after trying a lot:

i made a terrain 2048 *2048 in editor and tried to import a

*.r16 file : the file is not present (hidden) in the dialog box explorer

*.raw file : file present in explorer dialog but result in failed to load in editor.

then with code (lua) no problem for each file: it loads  (though i think better result with r16 one)

don't know why in dialog explorer r16 is not seen

, so i put my file here (needed to rename extension because no allowed to upload *.r16 ), if you want to try (not a great elevation from 5m to 45m)

 

Total_G_HM.r16.txt

AMD Ryzen 5900HX - Nvidia RTX 3070 - 32 Go - 1To SSD - W11

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...