Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lights sometimes don't work on Android when deployed. #486

Closed
SerenaSchiffer opened this issue Mar 14, 2019 · 6 comments
Closed

Lights sometimes don't work on Android when deployed. #486

SerenaSchiffer opened this issue Mar 14, 2019 · 6 comments

Comments

@SerenaSchiffer
Copy link

SerenaSchiffer commented Mar 14, 2019

Describe the bug
This bug is a very mythical bug. It only triggers under specific circonstances ( See To Reproduce ). The effects are that lights don't seem to work and my 3D model is darker. You can still see the texture, but it's very dark. It is an intermittent problem, it happens roughly half the time, and only happens on Android when hosted on Web Server, it works perfectly when hosted locally with node.js.

To Reproduce
Steps to reproduce the behavior:

  1. Create AR.js project with .gltf model, .png texture and lights on a-scene.
  2. Host on web server, Google Cloud Platform in my case
  3. Visit the website on Android Phone with Google Chrome
  4. Scan the AR Marker.

Expected behavior
I expected to see a lit model. It happens sometimes but not every time under these specific conditions (web hosted, android phone only).

Screenshots
If applicable, add screenshots to help explain your problem.

https://i.imgur.com/sOU3nHL.jpg
https://i.imgur.com/tHH3E0X.jpg`

Smartphone

  • Device: Samsung Galaxy S9 and Google Pixel 2
  • OS: Android 9
  • Browser : Google Chrome
  • Version : 72.0.3626.121
@commentatorboy
Copy link
Contributor

Try and look at the dev console when the error occurs. Does it indicate any errors?

@SerenaSchiffer
Copy link
Author

No, I don't notice anything different when it works and when it doesn't. No errors, network data seems fine texture-wise, etc. I tried it on many different phones and the issue still happens.

I'm aware of how weird this all sounds and I really dug in deep to try and fix it, to no avail for the moment.

@commentatorboy
Copy link
Contributor

@Sylfschiffer
Try and see if this works.
#494
Basically:
Set a renderer='precision: medium' on the a-scene tag.
Not sure if it works. But try anyways.

@nicolocarpignoli
Copy link
Collaborator

@Sylfschiffer news? it worked?

@SerenaSchiffer
Copy link
Author

Unfortunately no. I tried this a while ago but to be honest, I kinda dropped the issue. The producer wasn't interested in spending more to fix the issue and personally I was getting frustrated with this.

@nicolocarpignoli
Copy link
Collaborator

ok thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants