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

Bad distortion in several projects #43

Closed
Sgeo opened this issue Feb 19, 2022 · 6 comments
Closed

Bad distortion in several projects #43

Sgeo opened this issue Feb 19, 2022 · 6 comments
Assignees
Labels
bug Something isn't working priority-high

Comments

@Sgeo
Copy link

Sgeo commented Feb 19, 2022

Configuration

Wolvic version: 0.9.4
Wolvic build ID: 741e507 (AC 63.0.0)

Hardware: Oculus Quest 2

Steps to Reproduce

  1. Visit and enter VR in any of the following sites:
  2. https://spiderman.webvr.link/
  3. https://aframe.io/examples/showcase/helloworld/
  4. https://mixedreality.mozilla.org/hello-webxr/

Current Behavior

There is a bad distortion, especially notable when rolling head left and right (instead of turning left/right or looking up/down)

Expected Behavior

There should be a comfortable VR experience

Possible Solution

I wonder if Wolvic is providing the proper projection matrices.

Or these projects could have a bug. Spiderman seems to be based on A-Frame, although Hello WebXR looks unrelated to A-Frame (I may be mistaken)

Context

Error Logs and Stack Traces

@msub2
Copy link
Contributor

msub2 commented Feb 19, 2022

What is your IPD slider set to? For some reason only the middle setting seems to display WebXR experiences without distortion. I was also trying to figure this out in Firefox Reality but I can't seem to find any way of detecting where the slider is set to so I can compensate for it.

@Sgeo
Copy link
Author

Sgeo commented Feb 19, 2022

My IPD slider is set to the smallest setting, and yeah, middle setting seems fine.

That's a little bit confusing, shouldn't WebXR receive projection and view matrices? Trying to fix the problem by detecting IPD seems like a hack. Although if I wanted to know IPD I'd wonder if I could look at the two view/eye matrices, inverse one and multiply by the other, and examine that.

@MortimerGoro
Copy link
Contributor

We made some changes recently in Gecko matrix multiplication, maybe this caused a regression, we'll check that.

Also related, I had a WIP patch to improve eye offset math in Gecko, as internally only used position based offset and it's better to include a transform, some devices might set additional values other than translation

@RickAndTired
Copy link

Wolvic version 0.9.5
f967856 (AC 63.0.0)
Oculus Quest 2 (tested on 4 different headsets)

I am also getting the same bug

This only happens on IPD setting 1 and 3
The bug is not present on IPD 2

This bug has also been present in Firefox Reality since Oct 2020

@elima
Copy link
Contributor

elima commented Apr 28, 2022

This doesn't happen in Huawei VR, so looks like an issue in oculusvr backend.

@svillar
Copy link
Member

svillar commented Jun 7, 2022

This was fixed by @felipeerias in pull #134

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority-high
Projects
None yet
Development

No branches or pull requests

8 participants