1 Reply
      Latest reply on Jan 28, 2019 4:55 PM by Y.Tatsuya
      Y.Tatsuya Level 1 Level 1 (0 points)

        Hello, I’d like to ‘transform’ my face with ARKit, SceneKit and TrueDepth camera.

        One example is here : https://twitter.com/yt/status/1078534130416013312


        To implement this, two images (Y and CbCr) are sent to a Metal shader, and they are converted to RGB in the shader as next document says.


        Displaying an AR Experience with Metal | Apple Developer Documentation



        But the face drawn by my shader becomes a little bit whiter than other (See the example video).


        I set some SCNLightingModel to face’s SCNMaterial object, but this did not work.


        The conversion from YCbCr to RGB is not enough? Do I need to do something more?


        Thanks in advance.