If this helps you save time or money for your job, please consider supporting the work involved in here ;)
News As of January 2024, an extra command line option --disable_direct_composition=1
is recommended to prevent Chrome from restarting the GPU process.
News As of January 2023, Only versions older or equal to 0.5.0 no longer work because the associated version of RenderDoc are no longer able to inject into Chrome. Use version 0.6.0 (for RenderDoc 1.25 and Blender 3.4) or newer!
News As of Aug 23, 2020, Google Earth web is now supported on top of Google Maps!
News And since Aug 29, 2020, Mapy CZ as well!
Maps Models Importer is a set of tools for importing 3D models from wide maps in 3D content softwares. This is a proof of concept containing only a Blender add-on for importing 3D models from Google Maps.
The blender
directory contains the source code of the Blender add-on importing captures recorded with RenderDoc:
Download a release or make a zip of blender/MapsModelsImporter/
. In Blender 2.83, go to Edit > Preferences
, Add-on
, Install
, then browse to the zip file.
/!\ Do not use the "Download as zip" button of GitHub, make sure you use a release zip instead.
Install RenderDoc, get **the very version specified in the last release notes of this add-on!
You can follow instruction from the walkthrough video: https://youtu.be/X6Q7dbtXVZQ (Slightly out of date, refer to the steps bellow) Alternatively, check out the following steps:
Start RenderDoc, go to Tools > Settings
and check Enable process injection (restart required)
, restart RenderDoc then click File > Inject into process
;
Start terminal (Win+R, "cmd") and run (adapt the second line to the location of your Chrome installation):
set RENDERDOC_HOOK_EGL=0
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-gpu-sandbox --gpu-startup-dialog --disable_direct_composition=1
Do NOT press Ok on the dialog box yet;
In RenderDoc, search for chrome's GPU process and inject into it (Dubble click on the ID or click inject with the ID selected in the bottom right) (you may use the search field);
Press OK in the chrome dialog;
Go to Google Maps or Google Earth in satellite view, and take a capture using Print Screen
while moving (not needed for google earth) in the viewport, check that you have the debug info in the top left, if you don't then submit an issue here;
In RenderDoc, save the capture as an rdc file
In Blender, go to File > Import > Google Maps Capture
an choose your capture file.
For step 2. you can create a link to Chrome rather than usig the cmd, and put as target (again, adapt the path to chrome.exe
to your installation):
C:\Windows\System32\cmd.exe /c "SET RENDERDOC_HOOK_EGL=0 && START "" ^"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe^" --disable-gpu-sandbox --gpu-startup-dialog --disable_direct_composition=1"
Useful information can be found in the comment of the video, as well as on the support thread on blenderartists.
Most importantly, use the last version of this add-on. In the release notes of each version the recommended/required versions of RenderDoc and Blender are specified.
To check your installation, you can try importing sample captures from MapsModelsImporter-samples.
Unfortunately, the inject into process functionality of RenderDoc is not supported on linux. You can still import existing captures on linux, though.
The add-on can limit the number of imported blocks to prevent Blender from freezing too long. If not set to -1 or 0 (meaning no limit), there will be missing blocks in the imported scene, but it'll be quicker (good for testing pipelines, mostly).
Do NOT use the green "Clone or download" button of GitHub. I know it's tempting, but I cannot hide it, it's a GitHub feature. To get the proper zip, go to the release page.
Try appending ?force=webgl
at the end of the google maps URL. Also, check that you enabled the Globe mode (an extra button on the right-hand side once you are in satellite mode).
If it is not enough, you can try to change your region to United States because when you are localized in some other area, Google might chose to turn 3D off for some (political?) reason. See this post.
Try typing chrome://flags
and then checking Override software rendering list
Try typing chrome://settings/system
and making sure Use hardware acceleration when available
is enabled
This was a common issue with versions of this add-on prior to v0.2.0. Update to the latest version of this add-on, then make sure you remove the --use-angle=gl
option from the chrome shortcut. You should get API: D3D11
.
If chrome says something like "Unsupported command line, security will suffer", don't mind. This is due to the --disable-gpu-sandbox
flag, but it is just a warning, it should not be a problem for what we are doing.
Try to set and unset the fullscreen mode using F11.
Make sure you use the right custom shortcut to start chrome and that you closed any process chrome process before starting.
It happens sometimes, in this case you can use the "Capture after delay" button in RenderDoc to trigger a capture. Don't forget to make sure to move in the 3D viewport at the very time the capture occurs.
Make sure you are using the correct version of RenderDoc, which may not be the latest version (see release notes).
Remove any special character from your filename and from the directories that contain it.
Make sure your Blender is in English, do not used a translated interface (sorry).
If you want better quality captures, you should know that Google Maps loads LoDs (Levels of Details) in relation with the window size of your web browser. There is several way to increase it:
But while doing so you also increase dramatically the number of block. Be aware of the fact that by default the MapsModelsImporter add-on limits to 200 blocks to prevent from freezing for too long. You can change this number on import.
You can use the LilyCaptureMerger add-on for this, here is a quick demo: https://www.youtube.com/watch?v=BcGM76dwF_s
You can check out the LilyTexturePacker add-on I've made especially for this. Beware to use it only after using LilyCaptureMerger, because the latter rely on individual block textures to perform matching.
Even though it won't make miracles, the following can help:
Although I don't know how to automate the capture itself, you can easily automate the importing part, see this issue for an example of automation script, or this one to import all rdc files from a directory.
I think the most common use case is to sketch out blockings in early stages of architecture perspectives. Another interesting usage is to get a "ground truth" reference when doing match moving or motion tracking on raw footage.
Artistic uses have been reported as well, for instance Benjamin Bardou has been using it to create stunning images of Paris.
Feel free to notify me of your use case on twitter @exppad!
This is a proof of concept showcasing how the 3D render process of Google Maps can be inspected. This is intended for educational purpose only. For a more in-depth analysis, see Importing Actual 3D Models From Google Maps.
Do not use this for any commercial nor redistribution purpose. Actually, the use of such tool might be allowed for private read-only use, as this is what happens when browsing Google Maps, but not beyond. I do not take responsibility for any use of this tool.
For more details, see individual releases.
Aug 23, 2020 v0.3.0 Captures from Google Earth are now supported. When capturing from Google Earth, there is no need to move around in the viewport when taking the capture. Support for Google Maps is still ensured. Additional add-ons LilyTexturePacker and LilyCaptureMerger are compatible with Google Earth Captures.
Feb 17, 2020 v0.2.0 A new version is available that should make the whole process easier and work on more hardware. It now uses the last version of RenderDoc (1.6), the last version of Chrome (80) and the last version of Blender (2.82). This is quite a change and if you notice any regression (like it used to work and now it does not) please report!
Mar 30, 2019 v0.1.0 Initial release.
This repository does not provide the required RenderDoc binaries for linux nor for OSX. If you have such a system, build RenderDoc against Python 3.9 (the minor version matters) to be compatible with the version of Blender's Python distribution. See doc/Building RenderDoc module.md.
To import map data in Blender, this open source addon is very handy: domlysz/BlenderGIS
Here is another attempt at reverse-engineering Google data: retroplasma/earth-reverse-engineering
Some Google 3D cities available as OGC 3D tiles, see issue #279.