CesiumGS / cesium-unity

Bringing the 3D geospatial ecosystem to Unity
https://cesium.com/platform/cesium-for-unity/
Apache License 2.0
320 stars 75 forks source link

World Terrain is rendered without texture (Unity Quickstart) #313

Open csciguy8 opened 1 year ago

csciguy8 commented 1 year ago
  1. Install Unity Hub 3.4.2 and Unity 2021.3.25f1.

  2. Follow the 'Cesium for Unity Quickstart" guide, https://cesium.com/learn/unity/unity-quickstart/

  3. When creating the new project, use the "3D Sample Scene (URP)" template.

  4. When installing Cesium for Unity, select version 1.2.0.

  5. Continue with the tutorial until you add "Cesium World Terrain + Bing Maps Aerial imagery".

Notice that the world terrain geometry appears, but there is no texture. It is flat grey.

Also of note, if you repeat the same steps, but in step 3 use the "3D Sample Scene (HDRP)" template instead, everything seems to work fine.

j9liu commented 1 year ago

I was able to reproduce this too, with some notes:

kring commented 1 year ago

Just to exclude the simple stuff: it's not flat white because Unity is still in the process of compiling shaders, is it?

j9liu commented 1 year ago

Just to exclude the simple stuff: it's not flat white because Unity is still in the process of compiling shaders, is it?

For me, the "compiling shaders" color has always been a bright cyan. When I load this scene, the assets sometimes do show as bright cyan before their actual materials appear. Cesium World Terrain will also sometimes flicker cyan, but then it resolves to flat grey.

kring commented 1 year ago

Good point, I'm thinking of Unreal, which shows a flat grey/white while the correct shader is missing.

AvinoamHeroicRealm commented 9 months ago

Hi did you manage to solve this? I can't seem to upgrade my cesium materials, and so the globe's stuck on this bright cyan colour

AvinoamHeroicRealm commented 9 months ago

Hi did you manage to solve this? I can't seem to upgrade my cesium materials, and so the globe's stuck on this bright cyan colour

Ok I've managed to solve this.. there seem to have been an error in the shader graph shaders. What worked for me (for some reason) was to open them in the shader graph editor and simply click save asset. unity apparently fixed them behind the scenes and that worked for me