0 Replies
      Latest reply on Jan 10, 2019 10:35 AM 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

        https://developer.apple.com/documentation/arkit/displaying_an_ar_experience_with_metal?language=objc

         

        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.