vvoovv / blosm Goto Github PK
View Code? Open in Web Editor NEWBlosm addon for Blender. A few clicks import of Google 3D cities, OpenStreetMap, terrain. Global coverage. Source code is in the branch 'release'.
Blosm addon for Blender. A few clicks import of Google 3D cities, OpenStreetMap, terrain. Global coverage. Source code is in the branch 'release'.
Hello,
Congratulations for all efforts in comunicate Blender whith mercator rules!
All python modules worked fine, exception for one: Python module transverse_mercator
I cant see this module working inside Blender, in the same way as indicated in preview (site page).
What i am doing wrong?
regards
take into account roof:height and roof:levels
Hi!
I'm new to the Simple3DBuildings spec for OSM, so if this is wrong, please feel free to let me know.
I'm attempting to model my house, which is a simple two-part: One part with two levels, one part with one level.
Initially, I simply added two additional ways with a building:part=yes tag; I then added a relation (in a local file, not uploaded to OSM) which attempts to collect them; neither appears to be displaying in Blender.
I've attached an XML file which I'm loading, and would be curious if you have any thoughts on why it might not be working.
I do see that according to the console, it is parsing the building:
Parsing OSM file: 0:00:00.000639
The number of buildings: 1
Processing of parsed OSM data: 0:00:00.000101
Mesh creation in Blender: 0:00:00.000993
Total duration: 0:00:00.001845
And if I remove the building:part s, then it is correctly displaying (but without the multi-level heights, obviously).
Not sure if this is a modelling problem in my OSM, or a tool problem.
Thanks!
Hi, well at first i want to thank you for your addon. I donated today to check 3d capabilities of paid version, but i have a problem in some cases. My .osm files didn't exceed 30MB
In Blender I got this:
Traceback (most recent call last):
File "C:\Users\G\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\blender-osm\__init__.py", line 172, in execute
self.process()
File "C:\Users\G\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\blender-osm\__init__.py", line 203, in process
m.process()
File "C:\Users\G\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\blender-osm\building\manager.py", line 110, in process
building = elements[osmId].b
AttributeError: b
location: <unknown location>:-1
Here is my file:
osm.zip
Tags building:level
and building:min_level
should be supported
Is BlenderGIS have some additional futures, that not yet presented in blender-geo?
https://github.com/domlysz/BlenderGIS
Offer flat and gabled roof for the default roof type
See the video Blender-Tutorial - Große Landschaften texturieren (Cycles) by Zacharias Reinhardt as a starting point.
Please, modify OSM import addon for OrenOrienteering Mapper file format.
OMAP is XML based and in some way similar to OSM XML file structure.
I try few different OSM data sets, and always get similar results: most number of building after import in Blender (when use any thickness bigger then zero) needed fix their normals orientation.
One of data set ("Olney.osm") I get from here:
So, think, its a bug of OSM import script.
Hi,
I tried the srtm import module with blender 2.76 and tried to open (several times, playing with the options) a hgt file (N38W113.hgt) from the USGS. I can't see anything in my scene. In blender outliner, I can see a SRTM object, but nothing visible when I select it.
Did I missed a point ?
Hi voov,
Would it be possible to put all the files in a folder with an init.py and add the bl_info part at the beginning. Missing bl_info gives bad performances.
Example of bl_info for addons:
bl_info = {
'name': 'blender GEO',
'author': 'Voov',
'version': (1, 0),
'blender': (2, 7, 7),
'location': 'Toolshelf',
'description': 'import OSM etc',
'wiki_url': '',
'tracker_url': '',
'category': 'Import'}
Implementation of Straight Skeleton algorithm is required for that task.
According to OSM's wiki on 3D buildings, there are some interesting tags regarding to roofs that may be imported as well, as they dramatically affect the final result of the 3D building:
roof:shape
(which can be flat, skillion, gabled, half-hipped, hipped, pyramidal, gambrel, mansard, dome, onion,round, saltbox )roof:orientation
=along/acrossroof:direction=*
Additionally, these ones could be considered too:
roof:height
roof:angle
Currently any element tagged with barrier=wall
or barrier=fence
is not imported to blender. I think it would be interesting to import them because they provide interesting 3D information.
Since they are only 2D lines, it may need a text input on import dialog box in order to provide a default value for barriers' thickness. Additionally, each value of barrier key should be imported as different material.
See the document here.
Do you plan to make road import from *.osm also?
Hi,sir,
I am really interest in your addon, and i do want to pay for it , but the ploblem is that I am in China, so it is not easy for me to pay this by Paypal ,we often use Alipay for purchase in internet, so ,I want to know if you have Alipay account that I can pay to you.
I have no experience coding but I want to download the OpenStreetMap add-on for Blender and I was directed here to Github. When I open the link it's just code, of which I have no idea to deal with.
building:part doesn't work in the single mesh mode
help me sir
So that all streets are in one object.
It will be very useful to import the height data to specify the height of each building http://wiki.openstreetmap.org/wiki/Key:height
The Netherlands has published a very dense elevation map of the entire country in an "open data" program (since 2014). It contains filtered data to describe the terrain without buildings, cars and vegetation and has a precision of 20cm in a grid of 0.5m. The maps are downloadable.
There's another point cloud called "filtered", which is raw data covering all the points that are not considered part of the terrain. So that point cloud covers laser reflections from trees, buildings, cars and bridges.
The two can be used to derive building heights for all buildings in NL established in 2014, even derive the roof type, flat roof constructions like terraces, etc. Since the data is considered open, it may even be allowed to back-update openstreetmap, so that each building has very accurate height information. The "levels" data item remains important, because it can be used to derive the average height per floor and other rendering purposes.
More info and data download: http://nationaalgeoregister.nl/geonetwork/srv/eng/search#|9ca6f842-9482-4f5a-ad87-5307723cfe16
Open Blender, select and delete all objects then try to import osm file
line 487, in execute
context.scene.objects.active = context.scene.objects[0]
IndexError: bpy_prop_collection[index]: index 0 out of range, size 0
Hi vvoovv,
I've recently needed to refactoring how I handle georeferencing informations in BlenderGIS. Time to talk about compatibility! I know it's already an old discussion and I made no progress last year but its better late than never.
So, I try to match the work already initiate by you and Lukas on dxf importer, especially I've reused the SRID convention to specify the map projection. Here I try to describe more precisely my work.
However my tool is still not completely compatible with blender-geo. In BlenderGIS, it's possible to hack the SRID to pass directly a proj4 string as explained here, so I can include in my tool a special predefined CRS to build the corresponding proj4 string. But I don't specially want to maintain the support of proj4 string, because I think most of the case EPSG codes are enough.
Likewise, I'm not really happy with the solution used in dxf importer, because it specify the custom transverse mercator through a special keyword and, at all, it's not a standard way to define a projection.
So I think maybe a better solution would be to use UTM in blender-geo to standardize the projection and maintain acceptable distortions. Each UTM zone has a dedicated EPSG code : 326xx for north hemisphere and 327xx for south. I think UTM formula is pretty close to the one you actually use but needs some extra code to determine the zone. Maybee there are some helpful functions here.
What do you think ?
Regards
An edge of the building outline is defined by two points. If other points are located on the edge, just skip them.
Hi vvoovv,
Really great osm importer and really fast. Would it be possible in the "one mesh" mode to have the tags added as vertex groups like in the official blender osm importer? Your plugin is much better, and this functionality would make it perfect :)
Dear sir..
i just buy osm addons from https://gumroad.com but i'm still facing the same problem... osm addons says buy for 3D use..
i have purchase file how to install this file tell me fast..
Hey vvoovv!
I hope you're still active. I've seen you replying in many forums to your addon.
My problem is simple, I can't reach the download link. Everytime I click on the download link, only a .text file opens in my browser.
Though I would really find your addon amazing. Is there any way to sort it out? Am I just blind or the link is broken for some reason?
Thanks for the great work by the way!
Admittedly I am trying to import rather large files from here: https://mapzen.com/data/metro-extracts/
A 200MB OSM file of Sydney - Australia uses 4GB of peak memory and takes too much time. After the import Blender uses only 200MB. So I think there should be some memory leak in the importer.
Now I don't mind the time, but I want to import New York City OSM (2GB) and it is impossible with this much of a memory usage. (It goes up to 10GB and crashes.)
Any ideas? (I don't have much experience with Python but maybe I can help with development.)
probably via setup.py
I tried the latest Add-On, seems like the path extrude is no longer in the option?
Also, with building, etc, is there a suggestion to get a more hires version of buildings, etc? Wondering how much details of the city we can get using this Add-On?
Is there a good thread or blog displaying the whole process?
I have downloaded the latest zip file and installed it.
When i use it the only choices in the plugin menus are :
on youtube some made video where we can see other choices:
Is this ok? These choices has disappered?
And when importing an osm file, i see only wires , no buildings surfaces, as seen too on youtube demos.
Why?
Regards.
I am using newest version 2.1.1 and despite it claims to support most roofs types (amongst them, gabled), and despite having tested with Kremlin sample file (which seems to work perfectly -there's a great job there!), I haven't been able to make it work in my current location.
This is the area I would like to download: http://www.openstreetmap.org/#map=17/41.65534/-0.87817
As you can see from F4.map, roofs are properly tagged, as they are displayed on the simulator (see annotated screenshot below too)
Unfortunately when importing the osm
file into blender, I can't get gabled roofs but flat ones (see screenshot below):
I previously got "blender-geo" (while it was in opensource state), where was only one limitation:
# This is the release version of the plugin file io_import_scene_osm_dev.py
# If you would like to make edits, make them in the file io_import_scene_osm_dev.py and other related modules
# To create the release version of io_import_scene_osm_dev.py execute:
# python plugin_builder.py io_import_scene_osm_dev.py
It had not any copyright restrictions or limitations for forking. So, how I could fork it? Under MIT or so?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.