Skip to content
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

Unity only rendering one image for stereo #139

Open
sabinach opened this issue Oct 3, 2019 · 1 comment
Open

Unity only rendering one image for stereo #139

sabinach opened this issue Oct 3, 2019 · 1 comment

Comments

@sabinach
Copy link

sabinach commented Oct 3, 2019

Hello,

I have Unity running on Windows, and ROS running on an Ubuntu machine. When using only one camera, there are no issues. The images renders properly. I've set the screen resolution in Unity to match that of ROS.

However, when I try using stereo cameras, rather than stacking two images on top of each other, Unity only processes one image and stretches that image to fit the specified stereo dimensions. ROS then takes the top half of the stretched image for the left and the bottom half of the image for the right.

Running the provided unity executable on the ubuntu machine doesn't encounter this issue, so we deduce that ROS is sending/receiving the correct messages, however Unity is not rendering it properly on the windows side when we are building it from source.

We're looking into CameraController.cs, but are unsure where the stereo/pose information is being processed and rendered into Unity. Do you have any suggestions as to how to go about fixing this problem?

Thanks for your help!

@Winter-Guerra
Copy link
Contributor

Have you tried building the binary on Windows and verifying if the problem persists with the binary? Alternatively, could you manually set the editor render resolution to equal to 2x the camera height? I.e. if one camera is 800x600, then set the editor resolution to 800x1200? In the source editor, FG is unable to manipulate the output resolution, thus requiring some manual intervention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants