Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Surface shader result not recorded. #131

Open
ozgurshn opened this issue Oct 22, 2021 · 3 comments
Open

Surface shader result not recorded. #131

ozgurshn opened this issue Oct 22, 2021 · 3 comments

Comments

@ozgurshn
Copy link

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?
IMG_5887
IMG_5889

@AFathi
Copy link
Owner

AFathi commented Oct 22, 2021

@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

@ozgurshn
Copy link
Author

@AFathi thanks for the suggestion. Video format is MP4.

@ozgurshn
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants