I'm a bit new to QGIS, and making a few maps of roads through mountains. I'm looking to have a 3-D effect within my 2-D map.

I got a DEM, made a hillshade, and blended a basemap over it. Nice tutorial for this

My raster has a nice 3-D effect of the terrain. Is there someway to get the same for the vector layer i.e. roads. as you can see in the image the road doesn't seem to be fitted/adjusted to the terrain.

I searched a bit got some clues of v.drape (couldn't get it to work) not even sure if it'd do what I want. And I believe 2.5D symbology is for polygons only. Kinda need some way to embed the Z values in the road shapefile or something similar.

enter image description here

  • 1
    It sounds like you want the road to be (somehow) visually "draped" over the hillshade. It also sounds like you're not exactly sure what that would look like. Do you have an example of another map that looks like what you want? – csk May 20 '19 at 17:31
  • I have a few suggestions you can try in different combinations: make the road layer partially transparent; test out the different "blending modes" in the Layer rendering section of the style manager (for the road as well as the raster layers); make the hillshade partially transparent and move that layer above the road layer. – csk May 20 '19 at 17:36

Looking your example, I would guess that under:

Right click on Layer ->Layer Properties ->3D View

you need to change Altitude clamping mode of your vector (the road) from Relative to Absolute.

As it is now, it seems the road is represented at its absolute height over the terrain, which is not what you want.

enter image description here

| improve this answer | |
  • I tried changing altitude clamping but it doesn't change anything at all. Any other ideas? – Arslan Aslam May 18 '19 at 21:52
  • Could you post (in the original question) your 3D View settings? – RafDouglas May 19 '19 at 8:04
  • I'm currently using no 3-D settings. I made a hillshade from a DEM which is giving the raster a 3-D effect (that's all). There's no actual 3-D involved.... The view in the image is 2-D – Arslan Aslam May 19 '19 at 13:20
  • 1
    Duh, taking a closer look I see it is 2D, it seemed the road was floating. Than I don't understand your question at all: what are you trying to achieve? – RafDouglas May 19 '19 at 14:01

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.