Undesired sunspot on model in space from sun

Hello,

This issue is the same as #8738 on GitHub (https://github.com/CesiumGS/cesium/issues/8738)

After playing with the sand castle for a little bit it seems that models near the earth aren’t affected by this issue but once placed in space this sun spot issue occurs.

Attached will be an image depicted the issue using the Cesium sandcastle.

Thanks,
Brian

I have the same issue, using the latest Cesium.
I think it has something to do with the reflectivity of a model. For instance my model is very reflective. You can see that it has the spot on the side the sun isn’t pointing from more so than the balloon. However on the balloon one it looks like it is only occuring on the inside of the balloon which could be more reflective. My other theory is that the sunlight is somehow reflecting off of the camera? Anybody have any ideas?

What kind of material is on your glTF/how did you create this glTF?

This is where CesiumJS constructs its physically based material shader, you can see where it computes the sun direction here: https://github.com/CesiumGS/cesium/blob/c9dd6f65a452048afa61085a2c3d334a0e50716a/Source/Scene/processPbrMaterials.js#L873-L886

This is where I’d start looking into to debug this.

Hey Omar,

Thanks for the reply. The Hot Air Balloon glTF is the glTF that came with the sand castle example (https://sandcastle.cesium.com/index.html?src=Lighting.html).

I’ll look into the process and debug from there.

Thanks,
Brian

Omar, I didn’t create this model which is apart of a bigger model through Maya and exported it as a glb. I have looked into the materials and this is what it looks like from a gltf view:
“materials”: [

{

  "pbrMetallicRoughness": {

    "baseColorFactor": [

      1,

      1,

      1,

      1

    ],

    "baseColorTexture": {

      "index": 1,

      "texCoord": 0

    },

    "metallicFactor": 1,

    "roughnessFactor": 0.33,

    "metallicRoughnessTexture": {

      "index": 2,

      "texCoord": 0

    }

  },

  "normalTexture": {

    "index": 0,

    "texCoord": 0

  },

  "emissiveFactor": [

    0,

    0,

    0

  ],

  "alphaMode": "OPAQUE",

  "name": "ShdwTest_text"

}

],