可以通过从Google地图里抓图获取城市建筑数据,相对于osm这种傻傻地显示方块显示建筑,rdc生成的数据更真实(当然也更复杂)。不能访问Google的小伙伴们是无法尝试的。别问我怎么访问Google,这技术不能教,只能靠缘分获取。导入rdc最终效果:
导入rdc效果

操作

 具体操作看视频:特别注意使用renderDoc注入前,要先退出所有浏览器否则注入失败。

  • 使用Chrome浏览器,并能访问Google。
  • 安装renderdoc,用于生成rdc文件。
  • blender安装插件MapsModelsImporter,用于导入rdc文件。

生成rdc文件

 无法访问google就无法生成rdc文件,只能用跳过此步骤,使用我提供的rdc示例文件(百度网盘-提取码:q76h)来导入。
 启动cmd,并执行以下命令。路径注意是你Chrome应用的路径。

1
2
3
4
5
set RENDERDOC_HOOK_EGL=0
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-gpu-sandbox --gpu-startup-dialog

# 或者使用该命令,该命令能创建图标。
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"

 根据提示,使用renderdoc注入到对应进程。注入成功后,在Google Map里找一个有建筑高度的地方抓图(部分地区因政策原因是不能显示高度的),注意要多靠近看看,才能加载出更细致的图片。特别注意,建议使用下面的那个延时捕捉按钮,立刻捕捉所生成的文件可能无法加载出来。

导入rdc文件

 安装插件后导入即可:

附录

FAQ

1.导入rdc不成功?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
bpy.context.space_data.system_bookmarks_active = 1
Invalid RDC capture file. Please make sure that:
1. You are importing from Google Maps (NOT Google Earth)
2. You were MOVING in the 3D view while taking the capture (you can use the Capture after delay button in RenderDoc).
Please report to MapsModelsImporter developers providing the .rdc file as well as the full console log.
Console log is accessible in Windows > Toggle System Console (right click to copy).
Invalid RDC capture file. Please make sure that:
1. You are importing from Google Maps (NOT Google Earth)
2. You were MOVING in the 3D view while taking the capture (you can use the Capture after delay button in RenderDoc).
Please report to MapsModelsImporter developers providing the .rdc file as well as the full console log.
Console log is accessible in Windows > Toggle System Console (right click to copy).
Invalid RDC capture file. Please make sure that:
1. You are importing from Google Maps (NOT Google Earth)
2. You were MOVING in the 3D view while taking the capture (you can use the Capture after delay button in RenderDoc).
Please report to MapsModelsImporter developers providing the .rdc file as well as the full console log.
Console log is accessible in Windows > Toggle System Console (right click to copy).

答:请捕捉时使用下面的延时捕捉按钮Capture after,设置延时,多转动地图。