Jump to content

Terrain heightmap export-import


diedir
 Share

Go to solution Solved by diedir,

Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Solution

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

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...