timoore / vsgCs

Cesium client for VSG
MIT License
54 stars 15 forks source link

Black earth with no imagery #3

Open mingweiLIU opened 1 year ago

mingweiLIU commented 1 year ago

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

timoore commented 1 year ago

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.

mingweiLIU commented 1 year ago

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

timoore commented 1 year ago

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.
mingweiLIU commented 1 year ago

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.

timoore commented 1 year ago

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.