You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I’m working on a project with Cesium for Unreal (tag 2.7.0), where I’m trying to load a tileset containing a glTF model with double-sided materials.
Since double-sided materials aren’t enabled by default in the glTF layer material (ML_CesiumGltf) within the plugin, I created a custom material. This material takes all output from the "CesiumGlTFFunction" material function, and just have two-sided rendering enabled. I then applied this custom material to my tileset.
However, now I’m seeing an issue where one side appears very dark, and I’m not sure what’s causing it.
If anyone has suggestions on how to resolve this, I’d greatly appreciate the help!
Here’s a screenshot of what it looks like in CesiumJS:
And here’s how it looks in Unreal:
I’ve also attached one of the tilesets exhibiting this issue:
Okay I figured a fix, if I make my material unlit, and use color as emissive it works, but I think there might be an issues on how the shadow of the gltf is computed, cause this is really weird and haven't got this issues with other models.
When this value is true, back-face culling is disabled and double sided lighting is enabled. The back-face MUST have its normals reversed before the lighting equation is evaluated.
I think this is most likely what your custom material is missing.
Hi! I’m working on a project with Cesium for Unreal (tag 2.7.0), where I’m trying to load a tileset containing a glTF model with double-sided materials.
Since double-sided materials aren’t enabled by default in the glTF layer material (ML_CesiumGltf) within the plugin, I created a custom material. This material takes all output from the "CesiumGlTFFunction" material function, and just have two-sided rendering enabled. I then applied this custom material to my tileset.
However, now I’m seeing an issue where one side appears very dark, and I’m not sure what’s causing it.
If anyone has suggestions on how to resolve this, I’d greatly appreciate the help!
Here’s a screenshot of what it looks like in CesiumJS:
And here’s how it looks in Unreal:
I’ve also attached one of the tilesets exhibiting this issue:
testtileset.zip
Thanks in advance!
The text was updated successfully, but these errors were encountered: