Open Street Map building data projection to a height field?

   1286   3   2
User Avatar
Member
6 posts
Joined: March 2023
Offline
Hello,

I'm generating roads and building information from some imported OSM data. I'm looking to take the buildings generated and project/cast them to the terrain height field. I'm working in a mountainous environment. Currently, all of the building are on the same plane, either too low or clipping the terrain. I'll include a picture here to demonstrate this hurdle.

I'd love some info about related nodes that can achieve my goal. If I could bring these OSM generated buildings to the correct height, the final product would be amazing.

-Coulter

Attachments:
Current.PNG (776.5 KB)
Desired.png (701.1 KB)

User Avatar
Member
6 posts
Joined: March 2023
Offline
Not sure if bumps work here, but I'm still trying to solve this.
User Avatar
Member
31 posts
Joined: May 2018
Offline
Many ways to do this. I'd start by looking at what existing nodes can do (search for nodes named OSM, building, terrain etc). Dive into them to see how they work.

Also if you can share a simple scene file you are much more likely to get help.
Edited by asm - April 23, 2023 16:14:37
User Avatar
Member
67 posts
Joined: Oct. 2018
Offline
My Approach would've been to pipe the "buildings" through a point VOP/Wrangle and look at the terrain polygon's distance, then displace the Building to "touch" the terrain.

in VEX this would be the
intersect
function.

or the Ray SOP and some follow up. As the Ray SOP computes distance for each point you could end up with flattened buildings.
  • Quick Links