-
Notifications
You must be signed in to change notification settings - Fork 14
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
UGUI only show in left #3
Comments
For SBS S3D UI must be duplicated in screen space or must be virtual 3D in world space. Simplest methods:
|
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
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. |
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 ,
The text was updated successfully, but these errors were encountered: