Stereoscopic-3D-system-for-Unity-2019-
Stereoscopic-3D-system-for-Unity-2019- copied to clipboard
UGUI only show in left
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 ,
For SBS S3D UI must be duplicated in screen space or must be virtual 3D in world space. Simplest methods:
- Change Canvas "Render Mode" to "World Space" and Canvas appears in scene as 3D object and check it position relative camera.
- Change Canvas "Render Mode" to "Screen Space - Camera". Duplicate Canvas and select "Render Camera" leftCam for one Canvas and rightCam for another.
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?
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.
Hey Vital, still so happy with this script. Working so nicely.
But I have a challenge with the UI like others. I've rendered UI to a texture using Screen Space - Camera, and I can place it in front of each camera, using code like the following calculated per camera (left, right):
// from https://docs.unity3d.com/2022.3/Documentation/Manual/FrustumSizeAtDistance.html float z = 2.0f; // depth of plane float frustumHeight = 2.0f * z * Mathf.Tan(cam.fieldOfView * 0.5f * Mathf.Deg2Rad); float frustumWidth = frustumHeight * cam.aspect;
// 0.08 comes from 50m/25.4 (in) * 81 (dpi) / 1920 for fraction shift for infinity
transform.localPosition = new Vector3(THISVALUE, 0f, z);
transform.localRotation = Quaternion.identity;
transform.localScale = new Vector3(frustumWidth * 0.999f, frustumHeight * 0.999f, 1f);
But this issue is that THISVALUE is different for left and right cameras as it corresponds to the (I think) off-axis projection you are using to do stereo correctly. THISVALUE would be a small amount <0 for one of the cameras and vice versa for the other camera. If I knew the "horizontal" shift of the projection as a percentage of the horizontal fov I could get this right.
So I ask because you mentioned you would add functionality for zxzkf1992.
Hope you can help!
Hi! I already made this, moving from 2 cameras S3D panel to single camera canvas and blit resulting texture to Left & Right view so it is now compatible with default Unity canvases and you just add your canvas to my S3D script list variable and it should work. Just wait for the new big upgraded version as I am now testing new blit functions in different time moments and soon upload it.
Hey Vital, I was wondering if you had any updates on this? I hope so! Is there any way I can help?
Hi dbarnes10, too many updates, everyday I working on this so please wait :)
Thanks, all good just thought I'd check. I appreciate the script and the work you share free of charge. Very much.
On Wed, 19 Mar 2025, 14:18 Vital, @.***> wrote:
Hi dbarnes10 https://github.com/dbarnes10, too many updates, everyday I working on this so please wait :)
— Reply to this email directly, view it on GitHub https://github.com/Vital-Volkov/Stereoscopic-3D-system-for-Unity-2019-/issues/3#issuecomment-2735219848, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSWDRMVYI2EGKYZSMVCTG32VDOZNAVCNFSM6AAAAABVATQ5AGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMZVGIYTSOBUHA . You are receiving this because you commented.Message ID: <Vital-Volkov/Stereoscopic-3D-system-for-Unity-2019-/issues/3/2735219848@ github.com> [image: Vital-Volkov]Vital-Volkov left a comment (Vital-Volkov/Stereoscopic-3D-system-for-Unity-2019-#3) https://github.com/Vital-Volkov/Stereoscopic-3D-system-for-Unity-2019-/issues/3#issuecomment-2735219848
Hi dbarnes10 https://github.com/dbarnes10, too many updates, everyday I working on this so please wait :)
— Reply to this email directly, view it on GitHub https://github.com/Vital-Volkov/Stereoscopic-3D-system-for-Unity-2019-/issues/3#issuecomment-2735219848, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSWDRMVYI2EGKYZSMVCTG32VDOZNAVCNFSM6AAAAABVATQ5AGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMZVGIYTSOBUHA . You are receiving this because you commented.Message ID: <Vital-Volkov/Stereoscopic-3D-system-for-Unity-2019-/issues/3/2735219848@ github.com>