Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Android WebcamTexture in low light (only some models)

Discussion in 'Android' started by cynex, Mar 6, 2018.

  1. cynex

    cynex

    Joined:
    May 5, 2015
    Posts:
    10
    Hey Unity Folks,

    I've been having some issues using webcamtexture on android in low light conditions. This isn't a problem on all androids, in fact, the picture looks fine on my samsung s7.

    On the google pixel2 on the other hand, the front facing camera is very dark in comparison to the native camera when indoors, to the extent that you can see a silhouette of your face, but that's all. I've attached some photos so you can see what I am talking about. If you go outside, the image quality does improve, but the iso / exposure is still quite low.

    The first image is the native camera app, front facing camera. picture is fine.
    GooglePixel2_FrontFacing_NativeCameraApp.jpg
    The second is in unity using webcamtexture, front facing.
    Unity_WebCamTexture_FrontFacing.png
    The third is in unity using webcamtexture, rear camera.
    Unity_WebCamTexture_RearCamera.png

    I've also been trying to get NatCam up and running as an alternative, however it's been having some stability issues on the pixel as well. I've noticed others are having this issue as well :

    https://answers.unity.com/questions/1425938/android-native-camera-low-lightlow-iso.html

    We could really use any advice you can give here.
     
  2. cynex

    cynex

    Joined:
    May 5, 2015
    Posts:
    10
    I should also note that I have tried and replicated on multiple versions of unity.
    Unity 5.6.4, 2017.1, 2018b

    Would really appreciate any info you guys could supply. We have a demo due date of the 20th and it looks like the only feasible option for the demo is to go purchase a new phone and hope the issue isn't on that device.

    I'd be happy to supply any adb logcats if you think that would help.
     
  3. sticklezz

    sticklezz

    Joined:
    Oct 27, 2015
    Posts:
    33
  4. EnoxSoftware

    EnoxSoftware

    Joined:
    Oct 29, 2014
    Posts:
    1,577