List
iOS Screenshot Brightness problem
Posted Date: 2018-05-08 16:41     Edited Date: 2018-05-16 17:06     Writer: inactive

1. SDK Version: 3.5
2. Development Environment: Native iOS
3. Tracker/Scanner:
4. License Type(Free / Pro-One Time Fee / Pro-Subscription / Enterprise): Free
5. Target Device(Optional): iphone 8, X

When I try to screenshot I get image with incorrect brightness. But 3d model brightness is normal. Only back camera image brightness is to high.Problem was found only on iPhone 8 and X.

It is continue of white balance problem. But previous problem was solved by edit back camera shader. 

Details available by this link
https://developer.maxst.com/BoardQuestions/Details/274

 

Posted Date: 2018-05-14 0:50     Edited Date: 2018-05-14 0:50     Writer: slkim

You can adust White Balance use "video_fragment_func" in Metal Shader.

Let make Uniform "gamma" value. make buffer for gamma shader at BackgroundCameraQuad.

 

You must check pixelforamt for each device. bacause iPhoneX, and iPhone 8 upper use sRGB10.

 

Posted Date: 2018-05-16 17:06     Edited Date: 2018-05-16 17:06     Writer: inactive

But I do not create not textures not buffers with a custom format.

The format is taken from the input parameter renderer.colorPixelFormat from the renderer scenekit method.