Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Transparency in GVRVideoRenderer #323

Open
Oliver-Binns opened this issue Jul 5, 2018 · 0 comments
Open

Transparency in GVRVideoRenderer #323

Oliver-Binns opened this issue Jul 5, 2018 · 0 comments

Comments

@Oliver-Binns
Copy link

I need to implement transparency in GVRVideoRenderer.
The use case for this is playing a video over a 360° photo background to give a VR effect.

I have used Chroma Key blending with an input and mask image to implement the transparency in AVPlayerItem:

let filter = AlphaFrameFilter()   
filter.inputImage = request.sourceImage.cropped(to: sourceRect)     
filter.maskImage = request.sourceImage.cropped(to: alphaRect).transformed(by: transform)

Unfortunately, when passing this into GVRVideoRenderer, the view still has a black background.

image

How can I fix this?

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

No branches or pull requests

1 participant