Traceback (most recent call last):
File "C:\Users\User1\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\blender-osm\__init__.py", line 173, in execute
self.render()
File "C:\Users\User1\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\blender-osm\__init__.py", line 213, in render
m.render()
File "C:\Users\User1\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\blender-osm\building\manager.py", line 171, in render
self.renderer.render(building, self.osm)
File "C:\Users\User1\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\blender-osm\building\renderer.py", line 31, in render
self.renderElement(outline, building, osm)
File "C:\Users\User1\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\blender-osm\building\renderer.py", line 45, in renderElement
self.renderMultiPolygon(element, osm)
File "C:\Users\User1\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\blender-osm\renderer\__init__.py", line 322, in renderMultiPolygon
f = bm.faces.new((ut, _vt, _vb, ub))
ValueError: faces.new(verts): face already exists
location: <unknown location>:-1
Any ideas? Just purchased and tried a simple .osm import.
Import is performed correctly in that case according to the Simple 3D buildings specification:
Building outline area containing ways tagged with building: part=* is not considered for volume rendering.
So in your example there is a building part mapped with building: part=yes located inside a building outline mapped with building=yes.
According to the specification the building part will be rendered in 3D and the building outline wonât be rendered in 3D. So the addon performs import correctly.
But I moved forward and mapped that building correctly in the OSM database. So you can download that area again and import it to Blender.
Iâm repeating here what I sent in the private message.
Your file contained incorrect mapping according to the OSM specification. Since itâs encountered quite rare in the OSM, I opted to fix it the OSM database. You can download your area again and import it to Blender.
I totally agree with this recommendation. 1.6 Gb OSM file probably contains around half a million buildings.
Itâs possible to create an OSM file for an arbitrary area of interest with the service
Start typing the name of your place of interest in the input field. A popup list appears.
Donât choose a ready to download file under POPULAR EXTRACTS READY FOR DOWNLOAD NOW, if your area of interest has one
Choose an appropriate item under TO MAKE A CUSTOM EXTRACT
Adjust the selection box on the map
Press GET EXTRACT
Follow further instruction and wait around 1 hour till your OSM extract is ready. You will be asked to register at mapzen.com via your github.com account
@JuhaW
I remapped the building to reflect its structure in a better way:
Map building parts with building: part=yes and height tags explained below. Then create an outline the covers all building parts and map it with building=yes. Assign building address to the outline, not to building parts.
Important note. There must be no space between colon : and the word part. I placed the space intentionally there, because the forum software replaces colon : and the letter p with a smiley.
Use the tag building:levels to set the height of a building part expressed in levels or floors.
Important! Note that the middle part of building on the image above has building:levels=7 (NOT building:levels=2)
Use the tag building:min_level to set the offset of a building part above the ground expressed in levels or floors.
You donât need to set building:min_level=0 if a building part is located on the ground.
If you know the height of a building part in meters apply the tags height and min_height in the similar manner to the building part.
A tip. When you edit OSM in the JOSM editor, keep ALT key pressed and click on an edge multiple times to select the proper OSM element sharing that edge.
Thanks for the info and the new release.
I found you set tags to custom object properties which makes easy to set materials with script.
Is it possible you set tags âbuilding:colourâ and âroof:colourâ for objects if they dont have âroofâ and âwallâ materials ?
Yes, OSM tags are set as Blender custom properties for a Blender object representing OSM building outline if the option Import as a single object is unchecked
I set all OSM tags without any exception. So if a building outline tagged with building=yes has a tag building:colour or roof:colour, it will be also set as custom Blender property.
A building in OSM can have complex structure, i.e composed of several parts tagged with building:part=yes. In that case the building part can have its own tags building:colour or roof:colour. However the building part wonât get a separate Blender object. All parts of the same building will form the same single Blender object with custom properties taken from the building outline tagged with building=yes.
Maybe you should describe what you are going to achive at the end.
This building is a good example: no colour tags to refer which material is for roofs and which for walls.
In that case material slots0 and 2 are roof materials and slot1 is wall material.
It would be nice to have tags building:colour ab8f81, roof:colour a9a492 roof:colour 60686d, like you have already on many objects.
Different parts of the same buiding can have different colors. Your snapshot also illustrates that case. Three building parts on the top have yellow roof color, and the other building parts have reddish roof color. It isnât possible to have 2 or more Blender custom properties with the same key like roof:colour=a9a492 and roof:colour=60686d.
Also the same Blender material can be used both for roof and walls.
I can assign vertex groups to roof and wall faces. In this way you can separate roofs from walls and know for sure which Blender material is used for roofs and which one for walls.
Great effort!
Yeah, big goals, while others couldnâ care less, even if we get back into the stone age again
Am devoting time on learning from OSM wiki, appreciative of any link. Thank you.
And i continue having hope on terrain support.
Please write how you are going to use the information about roof and wall colors. Maybe I can provide a more consistent solution if you explain your final goal.