domlysz / BlenderGIS

Blender addons to make the bridge between Blender and geographic data
GNU General Public License v3.0
7.75k stars 1.35k forks source link

DEM (.tif) not displaying properly #627

Open melindafemminis opened 2 years ago

melindafemminis commented 2 years ago

Blender and OS versions

Blender 3.0.1 and Windows 10

Describe the bug

.TIF files do not display properly when imported as a georeferenced raster with DEM as displacement texture option. See screenshot below where I imported the same file 3 times and it loads in 3 different ways:

2022-02-25 11_20_17-Capture d’écran (1) png ‎- Photos

I am using the swissALTI3D dataset from SwissTopo and already completed a similar project where I imported tiles thesame way and it shows correctly:

2022-02-25 11_19_18-

I noticed that for the first project, after I downloaded the tiles I now have 2 more files per tile in the data folder: a xxxx_bgis.tif and a xxxx_bgis.wld. I am not sure at what point those files were created (I can see it was a few minutes after the downloads, probably when uploaded to Blender but not sure which option did it).

Also, when uploaded this new xxxx_bgis.tif tile it works correctly but not when uploaded the original .tif. See screenshot below:

2022-02-25 11_32_45-Blender_  C__Users_feme_Documents_turtmannsee_blender_pannels_HEAVY_3_nosubdiv6t

I tried with 2 different computers, both Blender 3.0.1 and Windows 10 and the same happens.

How to Reproduce

Error message

No error message.

domlysz commented 2 years ago

Geospatial tiff is a very versatile format and sometimes is not well supported in Blender giving funky results. I suggest to convert your file beforehand to a proper float32 tiff with gdal or qgis.

Also int16 tiff need to be cast to float32 however the displacer can not be setup. BlenderGIS will do this conversion automatically producing xxx_bgis.tif and xxxx_bgis.wld files but it's slow.