stereolabs / zed-unity

ZED SDK Unity plugin
https://www.stereolabs.com/documentation/guides/using-zed-with-unity/introduction.html
MIT License
254 stars 57 forks source link

AR passthourgh frames slip away when rotating head on Oculus #204

Closed senikovski closed 3 years ago

senikovski commented 3 years ago

Hi!

When I rotate my head with the HMD on, the picture frames in AR passthrough seem to rotate away from me way too fast. For example, when I rotate my head 45 degrees to the left the frames rotate way out of my FOV.

I use Oculus Rift with Zed M, SDK 3.5 with Unity 2021.1.13.

Thanks!

Bvallon-sl commented 3 years ago

Hi,

Can you try to set the Stereo Mode to multi pass ? It seems to fix this issue (according to another user : https://github.com/stereolabs/zed-unity/issues/182#issuecomment-845748502).

Best regards, Benjamin Vallon

senikovski commented 3 years ago

Thank you so much! The issue was resolved by the latest XR compatibility branch merger.

Another short question: Is it possible to change the surroundings around the passthrough frame, for example from black to the unity skybox?

Thanks!

Bvallon-sl commented 3 years ago

Hi,

If you add theses lines :

        finalLeftEye.clearFlags = CameraClearFlags.Skybox;
        finalRightEye.clearFlags = CameraClearFlags.Skybox;

at this location, it should do the trick.

Best regards, Benjamin Vallon

senikovski commented 3 years ago

Amazing thanks so much!