AR-js-org / AR.js

Image tracking, Location Based AR, Marker tracking. All on the Web.
MIT License
5.3k stars 909 forks source link

Unable To Use Transparent Alpha Channel Video #548

Open ewwwgiddings opened 1 year ago

ewwwgiddings commented 1 year ago

Do you want to request a feature or report a bug? I believe this worked once before on older versions but no longer works. So a feature and a bug at this point. Has anyone gotten this to work on recent versions?

What is the current behavior? Videos with alpha channel show as black boxes or not at all on latest version of AR.js utilizing A-frame.

If the current behavior is a bug, please provide the steps to reproduce. Attempt to use a video with an alpha channel and have transparency work

Please mention other relevant information such as the browser version, Operating System and Device Name I have attempted to use the following to get this to work but it does not seem to work for me using AR.js and A-Frame

https://github.com/balataca/aframe-transparent-video-shader https://github.com/jeromeetienne/AR.js/issues/480

These are the scripts I am using: <script src="https://aframe.io/releases/1.4.1/aframe.min.js"></script> <script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar-nft.js"></script>

What is the expected behavior? When using a video with alpha channels there are shaders or options to allow for alpha channel to be taken into account.

If this is a feature request, what is motivation or use case for changing the behavior? I would like to be able to use a video that has alpha channels in my AR experience but I am unable to.

Swapratim commented 11 months ago

I'm curious to see the progress of this thread - so commenting for future update.

ewwwgiddings commented 11 months ago

Last version I think it worked with was 0.8

jdanceze commented 9 months ago

any update?