Airsim: SimGetImage looks very dark

Created on 8 Jun 2018  ·  5Comments  ·  Source: microsoft/AirSim

Hi everyone,
I am using SimGetImage to grab image from Unreal Enviroment , but the image looks really dark after I set up all the parameter (like AutoExposureSpeed and so on.)
And also I tried PNG and uncompressed image, nothing changed
capture

and also two image in below should be the same
capture2
But the one display by python is darker then another

bug images

Most helpful comment

@sytelus Can sensible defaults please be provided such that the output images match the in game images? It is frustrating that additional work needs to be done to capture the exact images that are being shown to the user on screen.

All 5 comments

I encountered the same issue in several environments, is it something related to Unreal lighting condition?

The screen I saw in Unreal engine
vivid 64-bit pcd3d_sm5 6_12_2018 4_45_33 pm

The screenshot I got using AirSim API
screenshot_0

I found that changing the bp_sky_sphere sun brightness to around 80 made the brightness of the recorded images correspond more closely to the viewport images. Changing the auto-exposure min and max brightness in post-process volume(s) may also be worth looking at from my previous experimentation

You might also want to adjust TargetGamma:

"CameraDefaults": {
    "CaptureSettings": [
      {
        "ImageType": 0,
        "TargetGamma": 1.5
      }
    ]
}

Also see note on new settings.

Please let us know what worked for you.

@sytelus Can sensible defaults please be provided such that the output images match the in game images? It is frustrating that additional work needs to be done to capture the exact images that are being shown to the user on screen.

@kuanting do you mind if I ask you where did you get the drone geometry you have and if you mind sharing the physics script as well. Appreciated!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vinbo picture vinbo  ·  4Comments

kharyal picture kharyal  ·  3Comments

Mayankm96 picture Mayankm96  ·  4Comments

machenxiang picture machenxiang  ·  3Comments

p3jawors picture p3jawors  ·  3Comments