Displace modifier with black and white texture has sloping edges
Displacement needs many subdivisions to work. Still, the results are not gonna be perfect as the map may not overlap with subdiv &quot;grid&quot;. Use this map as a reference image instead and extrude the walls.