three-gpu-pathtracer icon indicating copy to clipboard operation
three-gpu-pathtracer copied to clipboard

Black screen on Android (Firefox and Chrome)

Open kefon opened this issue 3 years ago • 2 comments

I'm working on some creation using three-gpu-pathtracer, and it works flawlessly on desktop. But then I wanted to try it on my android mobile and only got a black screen (no render, but the GUI loads ok). After some remote debugging I tried to display your demo files (Material Test Orb, Physically Based Materials, Lego Models, etc.) on my mobile to compare, but I got the same result: black screen... Anyone can confirm?

First thing I could think of was testing if WebGL2 is enabled = YES.

I'm running the 0.04 npm version. (should I try the latest files to see if the M1 fix works here?)

Platform:

  • Device: MOBILE (Huawei Mate 20 Pro)
  • OS: Android
  • Browser: Chrome and Firefox
  • Three.js version: 0.139.2
  • Library version: 0.0.4

Here are the logs from the "Material Test Orb" demo scene: Screenshot_2

Here are the logs from my scene: (I'm not sure why I'm getting the extra IOR error here... Have to look at it.) Screenshot_1

Thanks in advance!

kefon avatar Jun 22 '22 23:06 kefon

Without the device it's hard to recommend too much - we might need some help understanding the issue. If you could narrow down the issue by comment out some of the shader code - ie just reading one texture since that seems to be the core of the issue - that would help.

One thing that might help - from this page is the OES_texture_float_linear extension supported?

gkjohnson avatar Jun 23 '22 02:06 gkjohnson

halfloat type

RenderTool avatar Jul 22 '22 17:07 RenderTool