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

One stretched view in XR mode on headsets in Unity 2022.3.21f1 #367

Open
De-Panther opened this issue Mar 24, 2024 · 1 comment
Open

One stretched view in XR mode on headsets in Unity 2022.3.21f1 #367

De-Panther opened this issue Mar 24, 2024 · 1 comment
Assignees
Labels
bug Something isn't working
Projects

Comments

@De-Panther
Copy link
Owner

Describe the bug
Instead of drawing 2 views in XR mode on headsets in Unity 2022.3.21f1, there's one stretched image over both eyes.

To Reproduce
Steps to reproduce the behavior:

  1. Use the WebXR XR Interaction Toolkit sample in Unity 2022.3.21f1
  2. Enter XR mode in a headset or the "Immersive Web Emulator" in stereo mode.
  3. There's only one stretched view instead of 2 views.

Expected behavior
A clear and concise description of what you expected to happen.
Expected to see views for both eyes.

Screenshots
If applicable, add screenshots to help explain your problem.
Using SpectorJS and the Immersive Web Emulator, this is how the sample should draw like
image
This is how it looks in Unity 2022.3.21f1
image

Unity info (please complete the following information):

  • Editor version: 2022.3.21f1
  • WebXR package version: 0.22.0
  • WebXR Interactions version: 0.22.0
  • Git or OpenUPM: Both
  • Using old components (like the Desert sample) or Input System + XR Interaction Toolkit: Both
  • Built-in render pipeline or URP: URP

Headset (please complete the following information):

  • Device: Any
  • OS: Any
  • Browser: Any

Additional context
Add any other context about the problem here.
Seems like in older versions, before Unity draws the views, it sets viewport and scissor test
image
Not in Unity 2022.3.21f1
image

Also in the newer version there are no WebGL warnings of invalid operations, so maybe there were some fixes related to XR SDK in WebGL.
Can try and draw the views textures to a custom shader and plane, instead of the current way of overriding the bindFramebuffer function.

@De-Panther De-Panther added the bug Something isn't working label Mar 24, 2024
@De-Panther De-Panther self-assigned this Mar 24, 2024
@De-Panther De-Panther added this to To do in General via automation Mar 24, 2024
@De-Panther
Copy link
Owner Author

Solutions for now can be:
Use an older version of Unity. 2022.3.16f1 works.
Use the BiRP samples (with WebXRCamera component instead of WebXRCameraSettings component) and in the WebXR Settings set DisableXRDisplaySubsystem to true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
General
  
To do
Development

No branches or pull requests

1 participant