Blender-osm: OpenStreetMap and terrain for Blender

Hi @serviteur,
I need additional information to answer your question. Could you please provide a picture to illustrate what contour map/contour generator is?

@bluecd

The most beneficial way for the community would be to add the information about the number of floors and roof types to the OpenStreetMap database. It isn’t that difficult. Open https://osm.org. Zoom to your area of interest and press the Edit tab. Select a building footprint and add:
building:levels = [number of floors]
roof:shape = [gabled or flat or hipped]

Having said that, I must note that it’s possible to set the average height for your area of interest in the experimental mode via the PML style mentioned above.

For example, for the appartments buildings open [your assets folder]/default/style/building/residential.pml. Then take the look at line 11:

footprint{
    numLevels: attr("building:levels") | if (not item["height"]) random_weighted( (4, 10), (5, 40), (6, 10) );
}

That means take the number of levels from the OSM attribute building:levels. If the attribute isn’t provided and there is no OSM height attribute, chose the number of levels randomly:
4 storeyed building has the relative weight 10
5 storeyed building has the relative weight 40
6 storeyed building has the relative weight 10
In other words 40 buildings out of each 10+40+10=60 buildings will have 5 floors, 10 building out of each 60 buildings will have 4 floors and finally the remaing 10 building will have 6 floors.

2 Likes

A tool that automates generate contour map/line map from 3D terrain.

Some examples for generate manually:

TopoShaper in Sketchup | Plugin for Contours

https://www.youtube.com/watch?v=zt2-q3Zb7JE

1 Like

@serviteur
Thank you for the clarification. That feature isn’t planned.

Received. Thank you for your answer.

Dear Vladimir,
i have a question about the georef in BlenderOSM. I import some samples to test the addon and I stumbled upon something I can’t get resolved.
My approach:
I prepare a area as building in EPSG 32633 to import it with your addon. The area is square with equal sides. When i import it into blender i noticed a slight rotation and the sides are not longer equal.
To compare the problem, i import the area also with blenderGIS. The values are correct here.
Any ideas how to get the correct georef for the import? I have read your georef on git from 2016 and the osm_georeferencing.py, but i thought this is outdated and not longer needed. It would be great if you give me a hint.

Best Regards
Markus

File
Comparsion

Hi @MarkusM,

Please note that the tab Geoscene is created by BlenderGIS. It isn’t a built-in Blender tab. So the Blender-OSM addon can’t now anything about a projection set in the Geoscene tab.

By default the Blender-OSM addon imports data in the transverse Mercator projection. To import OSM data in a custom projection please follow the instructions here. The projection code (SRID) would be EPSG:32633 for your case.

1 Like

Thank you for the prompt answer. I will try it with pyproj and SRID or Proj4 +proj=utm +zone=33 +ellps=WGS84 +datum=WGS84 +units=m +no_defs

1 Like

Working on GUI to set custom facade textures and texture atlases.

image

6 Likes

Complex hipped roofs are now supported by Blender-OSM addon. Tested for all 320.000 hipped roofs in OpenStreetMap. The addon successfully treats 99.99% of them.

The feature is currently available in the experimental mode of the premium version. Get the latest version using the download link in your purchase confirmation email. Update of assets is also required.

image

image

2 Likes

There were requests where to find hipped roofs at OpenStreetMap to test the latest feature of Blender-OSM. Here is a district in Kuala Lumpur densely packed with all kinds of hipped roofs: 101.5880,3.0421,101.5942,3.0488
Copy the coordinates to the clipboard and press the button “paste” in the addon panel. Don’t forget to enable the “experimental features” mode in the Blender-OSM preferences.

1 Like