gltf 2.0 model show dark side in android device

117 views
Skip to first unread message

Chris Wang

unread,
May 9, 2018, 5:47:59 AM5/9/18
to cesium-dev
Hi everyone

I have made an application for web browser to load my own gltf2.0 model.

It looks great. Now I want to move the application to my android device (Samsung S8).

But the model looks dark on the other side of the sun light.

The first picture is the browser look, and the second one is effect in my android device. 


I also upload the glb file below.

Any help is appreciated.

Thanks

Chris

test.glb

Sean Lilley

unread,
May 9, 2018, 7:26:03 PM5/9/18
to cesium-dev
It looks like the timeline for both screenshots are at the same date, so I'm confused why it looks light in one and dark in the other. If you explicitly set the clock to a certain time does the model look the same in both?

Chris Wang

unread,
May 10, 2018, 1:13:38 AM5/10/18
to cesium-dev
Hi Sean, the time is the same in both scene.  But the model in android device is much darker than the model in browser.

Chris Wang

unread,
May 14, 2018, 10:20:24 PM5/14/18
to cesium-dev
Hi Sean

The problem is still there when I set the clock at the same time.

在 2018年5月10日星期四 UTC+8上午7:26:03,Sean Lilley写道:

Sean Lilley

unread,
May 17, 2018, 1:56:09 PM5/17/18
to cesium-dev
That's really strange. Does this happen for all models you try? Do you notice the same problems on other mobile devices?

Chris Wang

unread,
May 21, 2018, 2:38:43 AM5/21/18
to cesium-dev
Yes Sean, it happens for all the gltf2.0 model. I've try the pbr demo in the online Sandcastle. The model is still dark on the other side of the sun light.

model on windows pc browser looks great


on samsung S8(SM-G9500) default browser

I also try another android phone, and it looks dark as well.

But the model looks well in the iphone browser.

Any help is appreciated. 

Thanks

在 2018年5月18日星期五 UTC+8上午1:56:09,Sean Lilley写道:

Chris Wang

unread,
May 21, 2018, 2:46:36 AM5/21/18
to cesium-dev
By the way, I alse try Chrome and Firefox browser on my android phone. It looks dark as well.

The model only looks well in iphone safari browser. 

Sean Lilley

unread,
May 23, 2018, 10:34:53 PM5/23/18
to cesium-dev
I'm still not sure what's going on, but I opened an issue on github: https://github.com/AnalyticalGraphicsInc/cesium/issues/6622.

Hopefully others can test and help debug the problem. If you are willing to dig in closer, try making adjustments to the shader in processPbrMetallicRoughness. I suspect the problem is there somewhere.

Chris Wang

unread,
May 24, 2018, 2:48:23 AM5/24/18
to cesium-dev
Thanks Sean, I will try to figure out the problem.

在 2018年5月24日星期四 UTC+8上午10:34:53,Sean Lilley写道:

alx...@gmail.com

unread,
Dec 11, 2018, 5:06:39 AM12/11/18
to cesium-dev

Ian Walberg

unread,
Jun 4, 2019, 5:30:56 PM6/4/19
to cesium-dev
Was there an explanation to this issue? We see the same on certain Android devices.

Thanks

Omar Shehata

unread,
Jun 5, 2019, 11:53:48 AM6/5/19
to cesium-dev
I believe we've isolated the issue to a driver bug on these Android devices, see this GitHub issue: https://github.com/AnalyticalGraphicsInc/cesium/issues/7651

I was waiting on an external contribution to fix this, but I might just go ahead and open a PR with the fix so we can get it in time for the next release.

Omar Shehata

unread,
Jun 28, 2019, 4:10:37 PM6/28/19
to cesium-dev
This has been fixed, and will be available in CesiumJS 1.59 that's coming out next week!
Reply all
Reply to author
Forward
0 new messages