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

WebVR in mobile systems black screen in requestPresent #330

Open
augedsa opened this issue Jul 19, 2018 · 6 comments
Open

WebVR in mobile systems black screen in requestPresent #330

augedsa opened this issue Jul 19, 2018 · 6 comments

Comments

@augedsa
Copy link

augedsa commented Jul 19, 2018

Description:

Greetings,

We have a very weird bug with the WebVR implementation in our System. We are trying to use webvr-polyfill library (https://github.com/immersive-web/webvr-polyfill) with our system and works great in HTC VIVE and WebVR Simulator Extension for Google Chrome. the issue is trying to call : window.vrDisplay.requestPresent([{ source: this.renderer.domElement }]); in Mobiles ( IPhone 7 IOS and Samsung Galaxy S8 Android) The screen stay black and the debug not throw any error in the console when we debug the Android device with google chrome remote debugging. when I quit the WebVR (Button calling window.vrDisplay.exitPresent();) There's error that never was presented. We think that there's some library that can be conflicting, we are using Zepto, MMDParser, ThreeJS, Tween, Stats (fps). Also we are importing Lodash. I quit the libs and still not working. I don't know If I miss any library or configuration but is working for my HTC Vive.

Hopefully you can give me a good way to proceed

Best Regards

Additional Information:
  • webvr-polyfill version: v0.10.6
  • Browser name/version/release channel: Google Chrome Mobile / 67.0.3396.87
  • Operating System: IOS 11.4
@jsantell
Copy link
Contributor

Hello! When using the HTC Vive, the polyfill will not do much -- it'll mostly be transparent since you're using the real WebVR API, and it only activates when navigator.getVRDisplays() doesn't exist. That being said, it should work on iOS and the Galaxy S8. Do you have a link where we could try it? Also the libraries you mention shouldn't conflict with anything in the polyfill, FWIW

@augedsa
Copy link
Author

augedsa commented Jul 19, 2018

Hello!

Thanks for answer, this is the link : http://ec2-34-208-138-249.us-west-2.compute.amazonaws.com:7900/home.html

Stay black, I don't get it. in divided mode, cardholder, not showing and not executing requestPresent.

@jsantell
Copy link
Contributor

I can recreate this on Chrome 67 with WebVR disabled. That being said, not sure what the issue is. I'd recommend reducing things in the scene to see what's causing it

@augedsa
Copy link
Author

augedsa commented Jul 20, 2018

It's happening in chrome and safari. So the issue is not the browser itself, Let me reduce the scene and I let you know. Maybe try to use cardboard-vr-display and see if the issue still there

@Threstle
Copy link

This is happening for me with android devices (no problems on iOS). Any news on this ?

@jsantell
Copy link
Contributor

With other scenes rendering OK, if there's an isolated test case of what in the scene is causing this, I can take a look

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