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

Alpha Channel Video transparency broken since version 0.9 #4079

Open
agusalex opened this issue Mar 13, 2019 · 15 comments
Open

Alpha Channel Video transparency broken since version 0.9 #4079

agusalex opened this issue Mar 13, 2019 · 15 comments

Comments

@agusalex
Copy link

agusalex commented Mar 13, 2019

Description:
As reported by @jamess922 on
jeromeetienne/AR.js#480
Alpha channel video does not seem to be working, however, this is not the case on version 0.8

@agusalex agusalex changed the title Alpha Channel Video broken since version 0.9 Alpha Channel Video transparency broken since version 0.9 Mar 13, 2019
@ghost
Copy link

ghost commented Jul 1, 2019

Hi,
I reproduce the issue too, has anyone found a workaround? Is it related to a-frame or threejs?
There aren't any warnings in the console so it's hard to guess where the problem lies.

@duasfh
Copy link

duasfh commented Aug 6, 2019

So, any changes?

@jean-barre
Copy link

My webapp is developed using v0.9.2 and I meet the same issue.
@dmarcos , @ngokevin would you know the reason for this?

@Mugen87
Copy link

Mugen87 commented Dec 30, 2019

Just wanted to share a live example to demonstrates that the latest three.js version (R112) supports webm video textures with transparency.

https://glitch.com/edit/#!/windy-rocket

@dmarcos
Copy link
Member

dmarcos commented Dec 30, 2019

@Mugen87 Thanks. Great news. A-Frame latest release is on r111. We will take on the fix for 1.1.0

@Mugen87
Copy link

Mugen87 commented Dec 30, 2019

It should also work with R111: https://legendary-planet.glitch.me

@ghost
Copy link

ghost commented Dec 31, 2019

@Mugen87 thanks! I tried the code from the glitch you just shared and used the mesh on a a-entity, it works perfectly indeed.

@gftruj
Copy link
Contributor

gftruj commented Dec 31, 2019

It seems the texture format is set to THREE.RGBFormat(1022) instead of THREE.RGBAFormat(1023) - seems to do the trick

From what i can tell the VideoTexture has its format set to THREE.RGBFormat if not specified (source), and the material system only changes the format to THREE.RGBAFormat for some IOS / HLS hacks (source)

@balataca
Copy link

Hello,

I had the same issues as you, and I made a shader package to solve this problem.
It works on versions > 0.9.0

check it out:
https://github.com/balataca/aframe-transparent-video-shader

@cyango
Copy link

cyango commented Jun 6, 2020

Hello,

I had the same issues as you, and I made a shader package to solve this problem.
It works on versions > 0.9.0

check it out:
https://github.com/balataca/aframe-transparent-video-shader

I've tried on Aframe 1.0.4, and it doesn't remove the background...
Can you confirm it still works on your side?

@cyango
Copy link

cyango commented Jun 6, 2020

Hello,
I had the same issues as you, and I made a shader package to solve this problem.
It works on versions > 0.9.0
check it out:
https://github.com/balataca/aframe-transparent-video-shader

I've tried on Aframe 1.0.4, and it doesn't remove the background...
Can you confirm it still works on your side?

Seems like the material component needs the attribute "transparent:true;". Now it's working.

@HawkenKing
Copy link

Hello,
I had the same issues as you, and I made a shader package to solve this problem.
It works on versions > 0.9.0
check it out:
https://github.com/balataca/aframe-transparent-video-shader

I've tried on Aframe 1.0.4, and it doesn't remove the background...
Can you confirm it still works on your side?

Seems like the material component needs the attribute "transparent:true;". Now it's working.

I got this working Chrome desktop no problems.

Doesn't work on the Oculus Quest or Mozilla XR, video comes up blank

@stevestavropoulos
Copy link

Is this bug ever going to be (properly) fixed? Does anyone know what has to be done?

@shubhamraghav1
Copy link

this issue is still there , the transparent video plays on desktop but it goes completely black on my android samsung m21..
Does anyone know how to resolve this

@omegastripes
Copy link

This helps me to solve the problem.

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