Hubs-Foundation / hubs

Duck-themed multi-user virtual spaces in WebVR. Built with A-Frame.
https://hubsfoundation.org
Mozilla Public License 2.0
2.13k stars 1.41k forks source link

Enable videos with transparency #3007

Open emclaren opened 4 years ago

emclaren commented 4 years ago

We've been asked a lot recently if it is possible to add a video with an alpha channel to Hubs rooms (e.g. https://twitter.com/tartanski/status/1302686272750788608 , https://discordapp.com/channels/498741086295031808/535638724785078292/750734367034441880, https://github.com/mozilla/hubs/discussions/2719 ). Currently there is just have a black background where the alpha channel appears.

A community member mentioned that Alpha webm files used to work in Hubs, but no longer do.

┆Issue is synchronized with this Jira Task

j-conrad commented 4 years ago

There are not very many video formats (codecs) that support alpha channels. Most that do were not intended for use on the web. As far as I understand, in order for Hubs to support this type of format, there would need to be an extension to glTF to allow it. Also, three.js would need to support rendering the format, which it may already.