Comments (9)
@ccamara, thank you for submitting the bug.
Mercado Central:
The gabled roof is there, but very low. You can check that in the EDIT mode of Blender. Actions from my side: change how a roof height is calculated if it isn't set in OSM explicitly to make a gabled roof more prominent for that case.
Ayuntamiento de Zaragoza:
It's actually a hipped roof for the building outline with a hole. F4 Maps renders it as a hipped roof. It's very arguable how a gabled (also a gambrel, round and saltbox) roof should look like if a building outline has a hole. I render a flat roof for that case. Actions from my side: no, the addon works as expected.
Basílica de Nuestra Señora del Pilar:
The gabled roof is there (check in the EDIT mode Blender) but hidden by the building part with a hipped roof. The addon supports hipped roofs only for a quadrangle. However the polygon with the hipped roof has more than 4 vertices. I do skip straight angles of a polygon by the checking every angle against some threshold. Seemingly the resulting polygon for that case has more than 4 vertices and the flat roof is rendered for the polygon instead of the hipped one. Actions from my side: change the threshold for a straight angle.
I'll release the new version with the fixes mentioned above as soon as possible.
from blosm.
@ccamara, I sent you the updated version of the addon via e-mail.
I added a GUI import parameter Straight angle threshold. You can get a hipped roof for Basílica de Nuestra Señora del Pilar if Straight angle threshold is equal to 179.6 or less. Use the latest version from the OSM, since I applied Arrange nodes along a straight line in JOSM.
This parameter Straight angle threshold is also important for calculation of the longest side of the building for a gabled roof. If the parameter is very close to 180 degrees, a wrong side could be taken as the longest one if a building outline has straight angles. Another tricky property of the parameter: circular buildings disappear under very low values of the Straight angle threshold.
from blosm.
Thank you for your quick response, @vvoovv !
I tried the new version and unfortunately didn't work (and by didn't work I mean that it's completely broken and could not import anything this time).
This is what I've done so far:
- Enter blender settings
- Remove older version by clicking on dialog box
- Installed new version clicking on install from zip file
- Imported the same osm file from yesterday
- Got the first error + nothing is imported
- Started new file
- Imported the kremlin sample file
- Got the second error + nothing is imported
By the way, I didn't understand much the new approach. Since I haven't taken a look at the code nor I am very skilled in python, I am wondering if it wouldn't be easier to have another GUI import parameter with a default roof angle (eg: 30º), just like you already do with default buildings' height when height or levels are not present.
from blosm.
I read the error text you had sent via e-mail. It looks like the old version hasn't been removed.
Please try the following:
- delete all versions of the addon
- restart Blender
- install and use the addon as usual
Please inform if it helped
from blosm.
We solved the problem with the error via e-mail. Somehow the old version of the addon wasn't removed.
I think it's a good idea to set default roof pitch. Can it be applied to other roof shapes besides gabled and hipped ones?
I still think that what F4 Maps renders for Ayuntamiento de Zaragoza is a hipped roof, since it's created by shrinking both outer and inner outlines. That method (also know as Straight Skeleton algorithm) is used to calculated a hipped roof for an arbitrary building outline:
Image source: Wikipedia
from blosm.
You mentioned that you didn't understood much the new approach. Did you mean the parameter Straight angle threshold?
from blosm.
Thanks for your comments, @vvoovv
from your comment I have realized that I made a mistake: when I attached the screenshot I wrote "gabled" and selected the Ayuntamiento's roof, but in fact it is tagged as roof:shape=hipped
in osm, which is right (and that's what you were correctly saying). Unfortunately, despite it is well tagged, it is not well displayed in blender. So the problem is not gabled but hipped roofs.
from blosm.
Actually, it was me who changed to roof shape from gabled to hipped one. At the moment the addon can render hipped roof only for a quadrangle. Hipped roofs for an arbitrary building outline is planned.
from blosm.
from blosm.
Related Issues (20)
- Google 3D Tiles (Buildings with more details) empty layer & viewport HOT 5
- Loading multiple maps at the same time HOT 8
- Replace Materials button with export-ready. python error HOT 4
- Blender Blosm Error: "No 3D tiles were imported. 1 errors occured during the import. See the system Console" HOT 1
- WinError 5 Access is denied HOT 2
- Contribute to free version of code HOT 2
- Problem: "Unable to process the root URI of the 3D Tiles: HTTP Error 403: Forbidden" HOT 1
- Not working on MacOS with M2 Pro HOT 2
- 3d title map doesnt work HOT 4
- No module named 'blosm-2' in Blander 2.83.2 HOT 1
- Large import of Google 3D Tiles - optimization HOT 5
- Blosm via command line HOT 1
- Blosm Error - Not working HOT 1
- No 3D tiles were imported. 1 errors occurred during the import. See the System Console. HOT 7
- 1 issue, and a few questions on how to use HOT 1
- I could upload 3d models in free version but the premium is giving me trouble, it says Error 403 HOT 2
- Textures are not exported with fbx file HOT 6
- Textures are not exported to Unreal Engine when using OSM HOT 1
- Feature Request: Simplify 3D Printing the results HOT 6
- Vertex Data Errors on Google Tiles HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blosm.