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

FOV on the <a-camera> is not working in VR #5621

Closed
gagandeep-simutopia opened this issue Jan 8, 2025 · 2 comments
Closed

FOV on the <a-camera> is not working in VR #5621

gagandeep-simutopia opened this issue Jan 8, 2025 · 2 comments

Comments

@gagandeep-simutopia
Copy link

Description:
The FOV setting on the a-camera is not working in VR mode, the FOV is clearly changed before I enter VR but once I do (on a VR device), it goes back to the original FOV.

  • A-Frame Version:1.6.9
  • Platform / Device: Google Cardboard (Android) , Meta Quest-3
@mrxz
Copy link
Contributor

mrxz commented Jan 8, 2025

In immersive mode the WebXR API dictates the projection matrix for rendering, which includes the FOV. So the behaviour your seeing is intended.

Not sure what you're trying to achieve, but rendering with a different FOV would result in an incorrect view through the lenses. If you want more of your scene to be in view at the same time, you'll have to adjust your scene layout instead. Similar to real life you can only adjust the environment around the user, not the users eyes.

@dmarcos
Copy link
Member

dmarcos commented Jan 9, 2025

Yea expected. Explained in docs:

https://aframe.io/docs/1.6.0/components/camera.html#vr-behavior

Closing. Can reopen if necessary

@dmarcos dmarcos closed this as completed Jan 9, 2025
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