ARVideoKit
ARVideoKit copied to clipboard
Surface shader result not recorded.
Issue environment:
Device Model: iPhone mini running iOS 15
Xcode Version: Xcode 13
iOS Version: iOS 15
Pod Version or Repo Commit:
Issue Details:
I record the scene where I play a video ver a SCNPlane in which I remove green background of video using surface shader. This cause recorded video to have a white background instead of transparent one. Any ideas why shader result is not recorded?
@ozgurshn, what's the video format?
I've seen similar implementations of this and I recommend pre-processing the video, exporting it on device then rendering it in the AR scene instead of applying shaders and immediately displaying it in the scene.
Let me know if that works
@AFathi thanks for the suggestion. Video format is MP4.
Tried pre-processing ( replacing green with alpha=0 using CIColorCube ) and play that video but that made the video semi-transparent with screen blend mode and black backgrounded with alpha blend mode.