Many models uses surroundings generated by OSM maps, but how we gonna do this ? Let’s find out
...
Required software:
Blender - https://www.blender.org/download/
Blosm plugin - Plugin
...
Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...
Plugin installation
Download „Blosm“ Plugin from sharepoint
Open your Blender
At the top left settings panel go to Edit - Preferences
...
Head to Add-ons and click on Install… button
Locate downloaded Blosm zip file and click on Install Add-on
After installing Addon, Blender should automatically prompt you with new window. If not, locate search button in existing window and type osm and you should find blender osm addon installed.
If its not checked please enable it by clicking on the empty square before addon name and than click on little triangle next to it to show addon settings
Now in addon Preferences you should see
Directory to store downloaded OpenStreetMap and terrain files
Click on folder icon next to it and choose directory you prefer. Usually is good to set same directory as client project you currently working on
...
OSM Website
Now we are gonna visit OSM map website
It should look like this
Locate search bar in top left corner and for the tutorial purposes you can type Skoda M18 (Škoda production buildings in Czech Republic)
Your window should look like this
In the center of the screen is our desired building but we wanna surroundings too, not just the main building
Zoom out and position view so the main building will be roughly in center
Now we gonna define desired area and export map so click on Export button in top right settings
Than we wanna click on manual area selection instead of automatic one
You should see new brightened square pop up on map
Now we can define desired area to be exported. See image bellow how to Scale and Transform area
...
Now Export it
Download file should look similar to this (Without number 4)
...
Blender part
Press shortcut N to bring setting panel from right and between Tool, View and others locate osm part
Here in Settings panel change server to
Click on folder icon and locate generated map.osm
Now we need to uncheck things we don’t want to import
...
Select all Curves, press F3 and search for convert to mesh
After converting please join all roads, footways, railways and similar paths into the one single object
After that you should have 2 objects - Buildings and Roads
Rename it if you like
Delete all OSM Materials and create one for roads and one for buildings
Now we optimize little bit. Select all buildings in Edit - Face mode and Merge close vertices by 0.1
Next thing to do is splitting buildings via separate by loose parts function
Last thing to do is cleanup. You can delete associated curves in way_profiles folder since we don’t need them anymore