Aframe - Use Google Cardboard Settings?

926 Views Asked by At

When an app is opened that uses Google Cardboard, the distortion is adjusted for the particular headset the user has configured (Cardboard A, Cardboard B, C-1 Glass, Daydream, Viewmaster, etc.)

With Aframe, there seems to only be one kind of lens view, which makes Aframe experiences look pretty bad with certain headsets. Anyone know a good way to handle this? For example, is there any way to do any of the following:

  1. Have Aframe use existing Google Cardboard settings?

  2. Set up toggles so that a user may select their Cardboard headset within Aframe?

  3. Manually make adjustments like in Krpano tours' VR Setup?

1

There are 1 best solutions below

2
ngokevin On BEST ANSWER

I don't believe Cardboard settings aren't accessible through the browser. The settings would have to be provided and built into the WebVR API spec.

A-Frame just uses a polyfill for browsers. Most mobile browser and especially Cardboard holders do not have true WebVR support. I would not expect much from mobile Web Cardboard.

We also won't be too open in cluttering A-Frame or spending time with Cardboard-related code. While it's fun for makers, it's not the way VR is going heading forward. However, application developers are free to build that logic into their own applications.