eliemichel / MapsModelsImporter

A Blender add-on to import models from google maps
https://blog.exppad.com/article/importing-actual-3d-models-from-google-maps
GNU General Public License v3.0
2.36k stars 300 forks source link

Cannot Capture a valid capture RDC with two GPU #323

Open xavier114 opened 1 week ago

xavier114 commented 1 week ago

I cant seem to be able to import muy .rdc capture, The samples works.

I tried every combo of Blender Version, Addons Version and RenderDoc version but none work with my capture, the sample all works.

I got two gpu which are Nvidia RTX 4060 and Intel UHD Graphics.

I look in the capture file itself and notice the following:

A sample file Capture Structure image

And compare to mine: image

They dont have the same ammount of Color Passes and the error in blender is the following:

google_maps_rd failed and returned:
Loading capture from Z:\Capture\park.rdc...
Trying scraping strategy #4 (from draw call #0)...
(Skipping drawcall ClearDepthStencilView())
Not relevant yet: ClearRenderTargetView()
Not relevant yet: ClearDepthStencilView()
Not relevant yet: ClearDepthStencilView()
Not relevant yet: DrawInstanced()
Traceback (most recent call last):
  File "Z:\Blender Foundation\Blender\4.1\scripts\addons\MapsModelsImporter\google_maps_rd.py", line 377, in <module>
    main(controller)
  File "Z:\Blender Foundation\Blender\4.1\scripts\addons\MapsModelsImporter\google_maps_rd.py", line 369, in main
    scraper.run()
  File "Z:\Blender Foundation\Blender\4.1\scripts\addons\MapsModelsImporter\google_maps_rd.py", line 278, in run
    relevant_drawcalls, capture_type = self.extractRelevantCalls(drawcalls)
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "Z:\Blender Foundation\Blender\4.1\scripts\addons\MapsModelsImporter\google_maps_rd.py", line 214, in extractRelevantCalls
    return self.extractRelevantCalls(drawcalls, _strategy=_strategy+1)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "Z:\Blender Foundation\Blender\4.1\scripts\addons\MapsModelsImporter\google_maps_rd.py", line 176, in extractRelevantCalls
    if not skipped_drawcalls or self.hasUniform(skipped_drawcalls[0], "_uMeshToWorldMatrix"):
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "Z:\Blender Foundation\Blender\4.1\scripts\addons\MapsModelsImporter\google_maps_rd.py", line 142, in hasUniform
    constants = self.getVertexShaderConstants(draw)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "Z:\Blender Foundation\Blender\4.1\scripts\addons\MapsModelsImporter\google_maps_rd.py", line 132, in getVertexShaderConstants
    elif var.type == rd.VarType.Int:
                     ^^^^^^^^^^^^^^
  File "Z:\Blender Foundation\Blender 4.1\4.1\python\Lib\enum.py", line 784, in __getattr__
    raise AttributeError(name) from None
AttributeError: Int. Did you mean: 'SInt'?