vsgCs icon indicating copy to clipboard operation
vsgCs copied to clipboard

Black earth with no imagery

Open mingweiLIU opened this issue 3 years ago • 5 comments

Hi, I finally make the project work with no network error, but I encountered another problem: the earth is black with no images, what's more, the PC will shut down munites after the application is running. There is no error or warning in the console, and I've updated the GPU Driver ( GPU is RXT2080), do you think is there any other information I have missed? image

mingweiLIU avatar Feb 26 '23 09:02 mingweiLIU

How are you running the program - from the command line? Under a MSVC debugger? It looks like it's not finding the shader source code -- you can use VSG_FILE_PATH to set the path to the data directory if you haven't installed the program. If your machine is shutting down, that could mean that there are Vulkan problems; adding the --debug flag on startup will run the Vulkan validation layer and should report any problems.

timoore avatar Feb 26 '23 15:02 timoore

I have copied the data files into the project directory in the build directory, actually, there will be an error that PBR could not find the shader if the shader source code is missing. The --debug information is : image

mingweiLIU avatar Feb 27 '23 14:02 mingweiLIU

There are two workarounds for not finding the shaders:

  1. Install vsgCs. The data directory will be where the code expects. There may be issues running vsgCS from the installed location; I will look into that today.
  2. Set the VSG_FILE_PATH environment variable to point to vsgCS/data, wherever it is. I will add some documentation about this.

timoore avatar Feb 28 '23 14:02 timoore

I have set the VSG_FILE_PATH, and I don't think this is due to the reason that vsgCS could not find the shaders, since the images/Cesium_ion_256.png could be found, which is in the same folder the shaders are. Also, there are no warnings and errors for the shader missing.

mingweiLIU avatar Mar 01 '23 11:03 mingweiLIU

I've pushed changes to master that fix problems with an installed vsgCs, including a missing shader file issue. The required version of VSG is now 1.0.3, so you might need to refresh your VSG install.

timoore avatar Mar 01 '23 14:03 timoore

Getting the same issue, I think. csviewer crashes the graphics driver right before displaying the Earth (one time I got a glitchy rendering of it in black, similar to OP's screenshot). It doesn't completely "shut down" the computer as OP is describing but that is probably due to different OS.

csviewer log: https://gist.github.com/2xsaiko/d980aad1ad088da3bea4a9e29fc6054c dmesg log: https://gist.github.com/2xsaiko/5b1594074ec8535fa0fff3881b0ca6bf

(I've added a couple debug messages in places to try to debug this already, hence why it prints a bit more)

This is with vsgCs 1f466b5e24f6e6bedc3d6ce5c944c61a4e87f381, vsg 1.1.9, cesium-native 0.43.0 on Gentoo amd64, Radeon RX 6800 XT (but software rendering with lavapipe also crashes).

dblsaiko avatar Mar 03 '25 00:03 dblsaiko

Getting the same issue, I think. csviewer crashes the graphics driver right before displaying the Earth (one time I got a glitchy rendering of it in black, similar to OP's screenshot). It doesn't completely "shut down" the computer as OP is describing but that is probably due to different OS.

csviewer log: https://gist.github.com/2xsaiko/d980aad1ad088da3bea4a9e29fc6054c dmesg log: https://gist.github.com/2xsaiko/5b1594074ec8535fa0fff3881b0ca6bf

(I've added a couple debug messages in places to try to debug this already, hence why it prints a bit more)

This is with vsgCs 1f466b5, vsg 1.1.9, cesium-native 0.43.0 on Gentoo amd64, Radeon RX 6800 XT (but software rendering with lavapipe also crashes).

Before I dive into this, can you see if you can reproduce the error with worldviewer? I'm about at the point of deleting csviewer.

Also, it seems that aren't displaying any imagery on the terrain... That should work of course, but I'm wondering if that's what you intended.

timoore avatar Mar 03 '25 03:03 timoore

Ah, worldviewer does work, tried the osm-buildings.json file.

Also, it seems that aren't displaying any imagery on the terrain... That should work of course, but I'm wondering if that's what you intended.

Yeah, it seemed like the simplest option to test. Maybe in hindsight not the best choice (:

Thanks, and sorry for the noise!

dblsaiko avatar Mar 03 '25 17:03 dblsaiko