Vital-Volkov / Stereoscopic-3D-system-for-Unity-2019-

Stereoscopic 3D system for Unity 2019 and 2020 with default render + Post Processing Stack v2, URP, and HDRP + Direct3D 11.1 native S3D
72 stars 14 forks source link

UGUI only show in left #3

Open zhutouzhutou opened 2 years ago

zhutouzhutou commented 2 years ago

the plugin so cool and magic.unity 5.6 have VR side by side ,but unity 2020 no side by side. in scene create canvas,add text,toggle,side by side only show UI on left screen ,

Vital-Volkov commented 2 years ago

For SBS S3D UI must be duplicated in screen space or must be virtual 3D in world space. Simplest methods: 1) Change Canvas "Render Mode" to "World Space" and Canvas appears in scene as 3D object and check it position relative camera. 2) Change Canvas "Render Mode" to "Screen Space - Camera". Duplicate Canvas and select "Render Camera" leftCam for one Canvas and rightCam for another.

zxzkf1992 commented 1 year ago

Hello, we also have the same problem in Unity 2021.3.11f1, we used the second method you provided, which is Duplicate Canvas for left and right camera. I think this method may not be suitable for dynamically adding new UI in canvas. For example, if I add a new UI to the left canvas while Unity is running, it will only be displayed on the left eye. Do I need to add new UI for both left and right canvas? but doing so involves a lot of event response, or is there any other way to solve this problem?

Vital-Volkov commented 1 year ago

Hello, we also have the same problem in Unity 2021.3.11f1, we used the second method you provided, which is Duplicate Canvas for left and right camera. I think this method may not be suitable for dynamically adding new UI in canvas. For example, if I add a new UI to the left canvas while Unity is running, it will only be displayed on the left eye. Do I need to add new UI for both left and right canvas? but doing so involves a lot of event response, or is there any other way to solve this problem?

Hi! This is simple = have 1 3D menu in scene or 2 overlays(screenspace) menu for each eye(make copy of canvas). I'll add this functionality.