Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot import dump into blender #304

Open
lupettohf opened this issue Feb 15, 2024 · 1 comment
Open

Cannot import dump into blender #304

lupettohf opened this issue Feb 15, 2024 · 1 comment

Comments

@lupettohf
Copy link

lupettohf commented Feb 15, 2024

If you are having trouble importing a .rdc file with this add-on, please provide the following information:

We did downloaded the example and it imported it successfully.

Here is the error in the console, it's consistent with multiple tries.

google_maps_rd failed and returned:
Loading capture from C:\Users\Valentina\Documents\test.rdc...
Trying scraping strategy #4 (from draw call #0)...
(Skipping drawcall ClearDepthStencilView())
(Skipping drawcall ClearRenderTargetView())
(Skipping drawcall ClearDepthStencilView())
(Skipping drawcall Draw())
(Skipping drawcall ClearRenderTargetView())
Not relevant yet: ClearRenderTargetView()
Not relevant yet: ClearDepthStencilView()
Not relevant yet: ClearRenderTargetView()
Not relevant yet: ClearDepthStencilView()
Not relevant yet: Draw()
Not relevant yet: ClearRenderTargetView()
Not relevant yet: ClearDepthStencilView()
Traceback (most recent call last):
  File "C:\Users\Valentina\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\MapsModelsImporter\google_maps_rd.py", line 347, in <module>
    main(controller)
  File "C:\Users\Valentina\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\MapsModelsImporter\google_maps_rd.py", line 339, in main
    scraper.run()
  File "C:\Users\Valentina\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\MapsModelsImporter\google_maps_rd.py", line 248, in run
    relevant_drawcalls, capture_type = self.extractRelevantCalls(drawcalls)
  File "C:\Users\Valentina\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\MapsModelsImporter\google_maps_rd.py", line 214, in extractRelevantCalls
    return self.extractRelevantCalls(drawcalls, _strategy=_strategy+1)
  File "C:\Users\Valentina\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\MapsModelsImporter\google_maps_rd.py", line 176, in extractRelevantCalls
    if not skipped_drawcalls or self.hasUniform(skipped_drawcalls[0], "_uMeshToWorldMatrix"):
  File "C:\Users\Valentina\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\MapsModelsImporter\google_maps_rd.py", line 142, in hasUniform
    constants = self.getVertexShaderConstants(draw)
  File "C:\Users\Valentina\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\MapsModelsImporter\google_maps_rd.py", line 123, in getVertexShaderConstants
    elif member.type == rd.VarType.Int:
  File "C:\Program Files\Blender Foundation\Blender 4.0\4.0\python\lib\enum.py", line 437, in __getattr__
    raise AttributeError(name) from None
AttributeError: Int. Did you mean: 'SInt'?
@lupettohf
Copy link
Author

Fixed a few seconds after, change lane 123 in google_maps_rd.py from int to SInt.

Imported :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant