AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

recording is not the same as preview

Open tsaizhenling opened this issue 4 years ago • 3 comments

Bug report

  • AirSim Version/#commit: 950a5594
  • UE/Unity version: -
  • autopilot version: -
  • OS Version: windows 10

What's the issue you encountered?

the recorded image is not the same as what is rendered in the simulatore Screenshot 2021-03-22 131207 img_ComputerVision_0_0_1616389863015403400

Settings

{
  "SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/master/docs/settings.md",
  "SettingsVersion": 1.2,
  "SimMode": "ComputerVision",
  "SpeedUnitFactor":0.1,
  "RecordUIVisible": false,
  "Recording":{
    "Enabled": false,
    "RecordOnMove":false,
    "RecordInterval": 10.0,
"Cameras": [
    { "CameraName": "0", "ImageType": 0, "PixelsAsFloat": false, "Compress": true },
    { "CameraName": "0", "ImageType": 3, "PixelsAsFloat": true },
    { "CameraName": "0", "ImageType": 2, "PixelsAsFloat": true }, 
    { "CameraName": "0", "ImageType": 1, "PixelsAsFloat": true }
]
  },
  "CameraDefaults": {
    "CaptureSettings": [
      {
	"ImageType": 0,
        "Width": 1024,
        "Height": 576,
	"TargetGamma":1.0
      },
      {
        "ImageType": 3,
        "Width": 1024,
        "Height": 576
      },
      {
        "ImageType": 1,
        "Width": 1024,
        "Height": 576
      },
      {
        "ImageType": 2,
        "Width": 1024,
        "Height": 576
      }
    ]
  },
"SubWindows": [
    {"WindowID": 0, "CameraName": "0", "ImageType": 0, "VehicleName": "", "Visible": true},
    {"WindowID": 1, "CameraName": "0", "ImageType": 6, "VehicleName": "", "Visible": true},
    {"WindowID": 2, "CameraName": "0", "ImageType": 3, "VehicleName": "", "Visible": true}
  ]
}

How can the issue be reproduced?

  1. please use this project

https://drive.google.com/file/d/1Vg9xPrzcaquRFsK5luASrlUk7g2_Ni1X/view?usp=sharing

What's better than filing an issue? Filing a pull request :).

tsaizhenling avatar Mar 22 '21 07:03 tsaizhenling

This issue has been automatically marked as stale because it has not had activity from the community in the last year. It will be closed if no further activity occurs within 20 days.

stale[bot] avatar Apr 16 '22 11:04 stale[bot]

@tsaizhenling, can you try with this solution?

jonyMarino avatar Jun 08 '22 18:06 jonyMarino

I ran into this problem myself. I seem to have fixed it by digging into the details of the SceneCaptureComponent in the BP_PIPCamera blueprint and checking both Use Ray Tracing if Enabled and Temporal AA checkboxes in the Scene Capture section. Now the inset and saved images appear to be the same as the "game" camera in image quality. I spent a lot of time trying options within the Camera Component, but it seems those are not used?

Would love to hear from anyone with more insight if this makes sense to them!

fearsomerobot avatar Jul 11 '22 18:07 fearsomerobot