question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider allowing VR when fullscreen isn't supported

See original GitHub issue

Browser: Safari or Chrome Operating System: iOS 13 Sandcastle example: https://sandcastle.cesium.com/gallery/Cardboard.html

Hi, I have been working with Cesium on a personal project for a couple of weeks now and didn’t wanted to report this until I had a more comprehensive knowledge of everything around WebVR / WebXR.

Thing is Cesium just don’t work on iOS as it was supposed to be. It doesn’t show the vrButton or fullScreen buttons when you configure the Cesium Viewer with those options. It does not even work in the original Cardboard Sandcastle demo (linked above).

I suspect this has something to do with how iOS require apps to mandatory get the user actively triggering grant permission. AFrame had the same issue described here and here and they solved it requesting those permissions on this PR.

Is this what could be happening to you? It makes sense if Cesium doesn’t detect motion capabilities on the device (because iOS will return false if user isn’t prompted), so it wont show/allow VR features. Can you please confirm?

PS: I have created a workaround for this based on this “Synced Views Sandcastle” and “this guy’s approach to sync deviceMotion-Viewer”, and I have a “working version” of stereo view 3d/VR Cesium at my app, so its definitely something doable, but obviously i’d prefer having it working “the proper way”.

Thanks.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
OmarShehatacommented, Apr 11, 2020

I believe the reason the VR button doesn’t appear on iOS is because the fullscreen API isn’t supported. See https://caniuse.com/#feat=fullscreen. Notice iOS 13 has only partial support (for iPads, not iPhones).

This is where the VR button checks if fullscreen is allowed and decides whether to hide it: https://github.com/CesiumGS/cesium/blob/d781f6f7fc971757436c566da769a5e174bf488a/Source/Widgets/VRButton/VRButtonViewModel.js#L157

This is where CesiumJS detects if fullscreen is allowed:

https://github.com/CesiumGS/cesium/blob/d781f6f7fc971757436c566da769a5e174bf488a/Source/Core/Fullscreen.js#L118

In your workaround, does the URL address bar still appear at the top of the page when running your VR mode?

0reactions
OmarShehatacommented, Apr 24, 2020

I think that would be my approach yeah. If you can open that PR and provide some screenshots/instructions on testing it that can help elicit some feedback from others on this change.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Full screen mode in virtual desktop : r/oculus - Reddit
Hello, I have just discovered the virtual desktop with oculus, and I have to say I think it is a great thing; especially...
Read more >
Quest 2 VR cant get full screen - SCS Software
Re: Quest 2 VR cant get full screen​​ Remember to both opt into the VR beta branch AND set the appropriate launch parameter....
Read more >
Vive Red screen/Compositor not fullscreen - XR Development
I think its a resolution setting, so maybe running it in a window would work. I'm not sure how to set that up,...
Read more >
Fullscreen not working when pressing f11 - Microsoft Community
I can't find anywhere on the settings where to enable/disable the hotkey. Any ideas? This thread is locked. You can follow the question...
Read more >
Full Screen not working for Steam videos :: Help and Tips
I fixed it by turning off hardware acceleration on the Steam client so it stops trying to use my GPU. Steam > Settings...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found