domlysz / BlenderGIS

Blender addons to make the bridge between Blender and geographic data
GNU General Public License v3.0
7.7k stars 1.35k forks source link

GIS Missing Material Properties After Get Elevation (SRTM) #537

Closed PJBHyperQ closed 3 years ago

PJBHyperQ commented 3 years ago

Blender 2.92 Windows 10

I have created a GIS basemap. After attempting to generate an elevation mesh with Get Elevation (SRTM) a 3D terrain mesh is generated. The result does not show the terrain image GOOGLE_SAT_WM embedded into the mesh. In previous attempts I successfully generated an EXPORT_GOOGLE_SAT_WM which included Materials Properties. Now all I get is an empty mesh labeled srtm and the GOOGLE_SAT_WM 2 D flat image sitting nearby.

GIS Capture

Error message

ERROR:BlenderGIS-master.core.basemaps.mapservice:590:Can't download tile x2860649 y1690517. Error HTTP Error 404: Not Found

DEBUG:BlenderGIS-master.core.basemaps.mapservice:600:Invalid tile data for request http://mt0.google.com/vt/lyrs=s&x=2860504&y=1690604&z=22 ERROR:BlenderGIS-master.core.basemaps.mapservice:590:Can't download tile x2860622 y1690504. Error HTTP Error 404: Not Found DEBUG:BlenderGIS-master.core.basemaps.mapservice:600:Invalid tile data for request http://mt0.google.com/vt/lyrs=s&x=2860622&y=1690504&z=22 DEBUG:BlenderGIS-master.operators.io_get_dem:103:https://portal.opentopography.org/API/globaldem?demtype=SRTMGL1&west=65.49957094395339&east=65.55802523740688&south=32.90843049267729&north=32.94499412531914&outputFormat=GTiff WARNING:BlenderGIS-master.core.georaster.georaster:145:Cannot extract georefencing informations from tif tags DEBUG:BlenderGIS-master.operators.io_get_dem:103:https://portal.opentopography.org/API/globaldem?demtype=SRTMGL1&west=65.46818210165357&east=65.58876234494997&south=32.89068996855384&north=32.96440421093734&outputFormat=GTiff WARNING:BlenderGIS-master.core.georaster.georaster:145:Cannot extract georefencing informations from tif tags DEBUG:BlenderGIS-master.operators.io_get_dem:103:https://portal.opentopography.org/API/globaldem?demtype=SRTMGL1&west=65.49836163744466&east=65.55858280915889&south=32.90835581919676&north=32.94597587349106&outputFormat=GTiff WARNING:BlenderGIS-master.core.georaster.georaster:145:Cannot extract georefencing informations from tif tags

PJBHyperQ commented 3 years ago

Correction, Blender Version 2.93.2

PJBHyperQ commented 3 years ago

Additionally, when I attempt a manual import using Import - Georeferenced raster, selecting Basemap on mesh, I receive an error message Error "non overlap data".

Here are the last few error messages

DEBUG:BlenderGIS-master.core.checkdeps:9:GDAL Python binding unavailable DEBUG:BlenderGIS-master.core.checkdeps:20:PyProj unavailable DEBUG:BlenderGIS-master.core.checkdeps:31:Pillow unavailable DEBUG:BlenderGIS-master.core.checkdeps:46:ImageIO Freeimage plugin available WARNING:BlenderGIS-master.core.georaster.georaster:145:Cannot extract georefencing informations from tif tags

domlysz commented 3 years ago

If you want to apply the relief on an existing textured plane, you just need to select it before executing the Get elevation operator, otherwise it'll generate a new separate mesh.

The non overlap data error means that your raster does not share a common geographic area with the plane, probably because of a different projection system.

Others messages are just warnings or debug help with no incidence.

PJBHyperQ commented 3 years ago

I have repeated this process multiple times. Here are a series of screen shots demonstrating the fault.

The texture plane was most definitely selected prior to the Get elevation process.

Note that no Material Properties were created.

Additionally, no changes were made including any difference with the projection when trying Import - Georeferenced raster. How do I ensure I have a common geographic area?

Exported GOOGLE_SAT_WM

Exported GOOGLE_SAT_WM Selected

Exported GOOGLE_SAT_WM Selected Get Elevation

Exported GOOGLE_SAT_WM and SRTM Elevation Mesh

Exported GOOGLE_SAT_WM and SRTM Elevation Mesh 2 No Material Properties

domlysz commented 3 years ago

You missing a step, you've to export the basemap to a new plane mesh with the E shortcut. Please refer to the quick start guide.

https://github.com/domlysz/BlenderGIS/wiki/Quick-start

PJBHyperQ commented 3 years ago

After many trials I have found that the failure only occurs after I lock the file and zoom. In this case the EXPORT_GOOGLE_SAT_WM is not produced, only the GOOGLE_SAT_WM is generated. Grab Google map Lock image Zoom three levels of magnification E to export but Blender does not respond. Something fails after tile download. No EXPORT_GOOGLE_SAT_WM is created.

adampann commented 1 year ago

@PJBHyperQ I'm experiencing the same issue when locking the image.

PJBHyperQ commented 1 year ago

?Hi Adam,

I eventually found the cause.

There were a couple of vertices at almost identical locations which generated partial and overlapping planes. They almost impossible to see. I went into edit mode and merged or deleted every nearby vertex and recreated each plane. That fixed the problem.

Kind regards

Peter

HYPER Q AEROSPACE @.*** www.hyperqaerospace.com +61 414 40 5898 0414 40 5898


From: Adam Pann @.***> Sent: Thursday, 5 January 2023 11:00 AM To: domlysz/BlenderGIS Cc: Peter Batten; Mention Subject: Re: [domlysz/BlenderGIS] GIS Missing Material Properties After Get Elevation (SRTM) (#537)

@PJBHyperQhttps://github.com/PJBHyperQ I'm experiencing the same issue when locking the image.

- Reply to this email directly, view it on GitHubhttps://github.com/domlysz/BlenderGIS/issues/537#issuecomment-1371559802, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AV2EAEHCQEKEOT4RBDQR32LWQYFJXANCNFSM5E3UJFUA. You are receiving this because you were mentioned.Message ID: @.***>

adampann commented 1 year ago

@PJBHyperQ Thanks for responding. Can you go into a little more detail on what exactly you had to do to fix it. I have a GOOGLE_SAT_WM but when I lock the map and zoom it and not able to create the exported version. Did you have to edit the GOOGLE_SAT_WM or something else?

PJBHyperQ commented 1 year ago

Sorry Adam,

I didn't carefully read through the follow up you posed.

For this GOOGLE_SAT_WM problem I didn't ever adequately overcome the issue but I found that if I deleted any cache results (maybe even a restart) and I was very selective with the area selected I got something usable. I haven't tried in V3 of Blender.

Sorry I couldn't be more helpful.

Kind regards

Peter

HYPER Q AEROSPACE @.*** www.hyperqaerospace.com +61 414 40 5898 0414 40 5898


From: Adam Pann @.***> Sent: Thursday, 5 January 2023 11:47 AM To: domlysz/BlenderGIS Cc: Peter Batten; Mention Subject: Re: [domlysz/BlenderGIS] GIS Missing Material Properties After Get Elevation (SRTM) (#537)

@PJBHyperQhttps://github.com/PJBHyperQ Thanks for responding. Can you go into a little more detail on what exactly you had to do to fix it. I have a GOOGLE_SAT_WM but when I lock the map and zoom it and not able to create the exported version. Did you have to edit the GOOGLE_SAT_WM or something else?

- Reply to this email directly, view it on GitHubhttps://github.com/domlysz/BlenderGIS/issues/537#issuecomment-1371600737, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AV2EAEABSJSL4DL2JHQC44TWQYK2ZANCNFSM5E3UJFUA. You are receiving this because you were mentioned.Message ID: @.***>

kefonelove commented 4 months ago

Hi! Maybe this video could help https://youtu.be/rR2W5U_GXwc