-
Notifications
You must be signed in to change notification settings - Fork 906
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
Location based ar with aframe requires different FOV values for chrome than it does for firefox #572
Comments
It seems that the firefox camera is zoomed in which accounts for this discrepancy, I'm just unsure of why the firefox camera is zoomed. |
I noticed from arjs-webcam-texture.js that if I look at the stream's settings firefox doesn't have the "zoom" parameter while chrome does. And changing the deviceId seems to break it or have no effect. However chrome allows for the zoom parameter. So rather than trying to zoom firefox out which seems to be impossible, I decided to just zoom chrome in to match it for now So I added zoom to the constraints
Added zoom to the 3d environment via the camera
And set the fov to be dependent on the browser
It's an ugly workaround but I don't think there's another option as I can't seem to get a better stream from firefox at all. |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
The samsung tablet I'm using requires an FOV of 52.75 on firefox and an fov of 87 on chrome. This of course screws up the scale of everything but it's needed to ensure the "pins" stay on their given latitude and longitude when turning the tablet.
If the current behavior is a bug, please provide the steps to reproduce.
Set up a simple location based aframe example, place a location about a km away, correct the fov on chrome or firefox until it's staying on target while you turn the device, change to the other browser and observe that the fov is now screwed up.
Please mention other relevant information such as the browser version, Operating System and Device Name
Android samsung galaxy s8
What is the expected behavior?
That FOV doesn't need to be changed between browsers
The text was updated successfully, but these errors were encountered: