terrain_generator icon indicating copy to clipboard operation
terrain_generator copied to clipboard

Data type input

Open Maddlovski opened this issue 3 years ago • 1 comments

Hello Sarath18,

first of all thanks for sharing the Python script with us. I am totally new in that topic and I am trying to use the wizard for some work I am doing. Is there a special data type required as input? I am trying to use TIFF data to create terrain. Whenever I enter the location the following output shows up and the program stops working: "terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::substr: __pos (which is 140) > this->size() (which is 0)"

Is there anything I am doing wrong ?

Best regards,

Martin

Maddlovski avatar Jan 29 '21 13:01 Maddlovski

Hey Martin,

The wizard currently takes in the heightmap input as png files. I haven't tested it out with TIFF data.

What you can do now is:

  1. Try any of the sample images given with the repo (under images folder) to test if the code is working properly.
  2. Convert the TIFF data to png and then generate the world.

I'll try to add support for more file types in the future.

Sarath18 avatar Jan 31 '21 11:01 Sarath18