Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Many models uses surroundings generated by OSM maps, but how we gonna do this ? Let’s find out

...

Required software:

...

Table of Contents
minLevel1
maxLevel3
outlinefalse
typelist
printablefalse

...

Plugin installation

  1. Download „Blosm“ Plugin from sharepoint

  2. Open your Blender

  3. At the top left settings panel go to Edit - Preferences

    image-20240529-113018.png

...

  1. Head to Add-ons and click on Install… button

  2. Locate downloaded Blosm zip file and click on Install Add-on

    image-20240529-113243.png

  3. 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.

    image-20240529-113322.png

  4. 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

  5. Now in addon Preferences you should see Directory to store downloaded OpenStreetMap and terrain files

    image-20240529-113355.png

  6. 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

  1. Now we are gonna visit OSM map website

  2. It should look like this

    image-20240529-113623.png

  3. Locate search bar in top left corner and for the tutorial purposes you can type Skoda M18 (Škoda production buildings in Czech Republic)

  4. Your window should look like this

    image-20240529-113703.png

  5. In the center of the screen is our desired building but we wanna surroundings too, not just the main building

  6. Zoom out and position view so the main building will be roughly in center

    image-20240529-113754.png

  7. Now we gonna define desired area and export map so click on Export button in top right settings

    image-20240529-113822.png

  8. Than we wanna click on manual area selection instead of automatic one

    image-20240529-113848.png

  9. You should see new brightened square pop up on map

    image-20240529-113945.png

  10. Now we can define desired area to be exported. See image bellow how to Scale and Transform area

...

  1. Now Export it

    image-20240529-114253.png

  2. Download file should look similar to this (Without number 4)

    image-20240529-114323.png

...

Blender part

  1. Press shortcut N to bring setting panel from right and between Tool, View and others locate osm part

    image-20240529-114437.png

  2. Here in Settings panel change server to

    image-20240529-114507.png

  3. Click on folder icon and locate generated map.osm

    image-20240529-114650.png

  4. Now we need to uncheck things we don’t want to import

...

  1. If your screen suddenly cut in half during zoom out. Don’t worry. You just need to change Clipping End value to 5000

    image-20240529-114919.png

  2. During OSM transform you can see that your main building is imported too. Thanks to that you can easily match OSM position to match real world location

    2023-07-19 13-32-19192.mp4
  3. Please select OSM buildings in Edit mode delete main building part

    2023-07-19 13-34-07.mp4
  4. Now on the right side panel you should see 2 types of objects

...

  1. Select all Curves, press F3 and search for convert to mesh

    2023-07-19 13-36-56.mp4
  2. After converting please join all roads, footways, railways and similar paths into the one single object

  3. After that you should have 2 objects - Buildings and Roads

    image-20240529-115053.png

  4. Rename it if you like

  5. Delete all OSM Materials and create one for roads and one for buildings

    2023-07-19 13-3244-1926.mp4
  6. Now we optimize little bit. Select all buildings in Edit - Face mode and Merge close vertices by 0.1

    Image Removed2023-07-19 13-47-45.mp4
  7. Next thing to do is splitting buildings via separate by loose parts function

    Image Removed2023-07-19 13-47-08.mp4
  8. Last thing to do is cleanup. You can delete associated curves in way_profiles folder since we don’t need them anymore

    image-20240529-115122.png

Associated parts

This tutorial is associated with another tutorial: How to prepare OSM data for Twinzo