Buildings Projected to Terrain - Lattice and ShrinkWrap - bypassing the terrain and deforming the roof I'm trying to project many buildings or many shapes into a very uneven Terrain.

I've tried many ways, the closest where to use: only ShrinkWrap constrain, and the best is to use a combination of Lattice modifier and ShrinkWrap modifier.

Most of the times the problem is that the buildings go thru the terrain, some more than others. I would like them to all just sink a little bit.

The other issue is that the roof gets deformed to follow the angle of the terrain mesh.

In my example, the red building is higher. and if you look underneeth half of the building is under ground.

And all the roofs are flat, and as you can see some get an inclination ( deformation ).

Here is the file and a photo:



[![enter image description here][1]][1]

[EDIT]
The problem I get with the suggestions (which I read many times), is that the lattice ( yes, I moved it up and down, under the buildings, scaled it, ... ) but it doesn't adapt to the mountain. For you to understand see next new image, showing the bottom of the mountain: the buildings are underneath the mountain, and they don't even show on top of the mountain.
Unfortunately I couldn't download your file but here are some ideas.

Set the lattice so that is at the bottom of the buildings.



To prevent the deformation on top of the buildings generate a vertex group, and assign only the bottom vertices of your buildings to it.



Then use that vertex group for the lattice. That way only the vertices on the group will be affected by the modifier.