De-Panther / unity-webxr-export

Develop and export WebXR experiences using Unity WebGL
https://de-panther.github.io/unity-webxr-export/
Apache License 2.0
1k stars 106 forks source link

Left and Right camera in Quest 2 look like missed allign and VR effect is broken. #368

Closed AmalinTasnim closed 3 months ago

AmalinTasnim commented 3 months ago

Describe the bug Left and Right camera in Oculus Quest 2 look like missed allign and VR effect is broken, if close one eye it show different view left eye and right eye. Its look like the stereo not function. I am using Unity 2022.3.12f1.

To Reproduce Steps to reproduce the behavior:

  1. Create a new Unity Project 2022.3.12f1. Switch platform to WebGL.
  2. Import WebXR Export and WebXR Interaction Toolkit sample packages from OpenUPM.
  3. Enter XR mode in headset.
  4. Left and Right camera in headset look like missed allign and VR effect is broken, if close one eye it show different view Left eye and Right eye. Its look like we only can see Right and Left view without front view in headset.

Expected behavior Expected to see the same view for both eyes and stereo.

Screenshots This is the sample of what we see in the headset Screenshot 2024-03-27 081826

Unity info (please complete the following information):

Desktop (please complete the following information):

Headset (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here. Screenshot 2024-03-27 101307

De-Panther commented 3 months ago

Can you share screenshots from the headset and the the main camera in the hierarchy? Also, any errors/warnings on build? Or any warnings/errors in the console of Chrome DevTools?

De-Panther commented 3 months ago

Also what sample did you use? There are 4

AmalinTasnim commented 3 months ago

I used this sample, XR Interaction Toolkit https://github.com/De-Panther/unity-webxr-export/blob/master/Documentation/Using-XR-Interaction-Toolkit.md

AmalinTasnim commented 3 months ago

Screenshot 2024-03-27 103816

De-Panther commented 3 months ago

There are 2 XR Interactions Samples, which one of them? "XR Interaction Toolkit Sample" or "XR Interaction Toolkit Sample - Built-in Render Pipeline"?

De-Panther commented 3 months ago

From the screenshot, it looks like you are using URP, but in the details you wrote that you are using Built-in RP. It's diificult to solve the issue if the info is missing or not accurate.

Can you please share a screenshot of the WebXR settings page?

AmalinTasnim commented 3 months ago

Oh sorry, I am using URP and the samples that i refer is XR Interaction Toolkit Sample. I used that sample and apply it to my project which is i am developing a virtual museum tour that can be played both using laptop and headset through browser. Screenshot 2024-03-27 104710

These are the view from headset left view and right view. left view right view

De-Panther commented 3 months ago

Thanks. Why "DisableXRDisplaySubsystem" is true? It should be false if using URP and the camera rig you are using.

AmalinTasnim commented 3 months ago

Thank you its working!! I have one more problem, where can I modify the input system for the controller to be interact with the 3D Model, like i want to rotate the model.

De-Panther commented 3 months ago

Great! From here it's using XR Interaction toolkit like in every platform