1

My first post to this topic: QGIS 3D - no terrain altitude binding There I have had problems with 3D objects from a point layer. I solved this.

Now I have a problem with 3D objects from a polygon layer. I use polygons / buildings from osm. All buildings with the same high. Within qgis2threejs is all ok. But with QGIS 3D not: No altitude binding. But I need for my ideas 3D of QGIS, I can not use qgis2threejs. Any ideas to solve the problem? I need the same result as for the buildings within qgis2threejs.

I get only a good result if I use flat terrain.

Here a screenshots of the problem and of my settings: enter image description here

above: The buildings with the black lines are examples, not the only wrong building-heigh-positions. The buildings left are OK, on the right wrong.

My settings:

enter image description here

Without terrain: no problems enter image description here

Windows 10, QGIS 3.10.6

edit: try on QGIS 3.12.3: only crashes....oh....

2 Answers 2

1

The "Height" property in Layer Properties > 3D View is used to place the bottom of the 3d object. You should be able to specify an attribute which indicates the starting height for each feature. If you do not have this then you can calculate it from the terrain layer you are using.

1
  • Thank you. I have tried this: I used the toolbox function "zonal statistics" for a height column within the building layer. I think it is the right way. But in my case the main problem is, that one building stands on raster terrain with several heights with a spectrum of sometimes more the 10 meters. Maybe this is not to solve correctly.
    – Jürgen
    Jun 2, 2020 at 17:30
1

Did you tried to change tile resolution to 1 or 2 px? If your computer does not allow to view this scene, try to decrease terrain file size while keeping original resolution of it.

1
  • Thank you for the answer. I have decrease the size of the srtm raster. The result is a little bit better. I think the main problem is, that the one building stands on raster terrain with several heights.
    – Jürgen
    Jun 2, 2020 at 17:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.