mit-aera / FlightGoggles

A framework for photorealistic hardware-in-the-loop agile flight simulation using Unity3D and ROS. Developed by MIT AERA group.
http://flightgoggles.mit.edu
Other
400 stars 100 forks source link

Stereo rendering wrongly image layout #153

Closed rezeck closed 4 years ago

rezeck commented 4 years ago

Hi, I am trying to custom the scenario on Unity, build and run it on ROS. I follow the step on the wiki page, and all works fine and I could run mono camera on ROS.

However, when I set to use stereo, the cameras show a vertical camera render and not the horizontal as I expected.

I set the resolution on Unity (FG_singlecam (1024x736) and FG_2cam (1024x1536)) to change the screen height to the double. I think this is some issue with FlightGogglesRenderer, but I don't know for sure. And I wondering if someone has a similar issue and could share some information.

Check this image to see what I am talking about (this is my Unity build): Screenshot from 2020-06-01 23-50-53

It should look like this one (this is the FlightGoggles v2.0.4-b1 Beta Release): Screenshot from 2020-06-01 23-51-30

rezeck commented 4 years ago

It turns out that was something with HDRP plugins. Probably, I miss some configuration. After I update the HDRP version, the camera's projections start to work correctly.

Check this tutorial to update HDRP version.