New Ideas of playing transparent videos by Unity and new ideas of unity videos

Source: Internet
Author: User

New Ideas of playing transparent videos by Unity and new ideas of unity videos

Unity 2017.2

We do not know from that version that unity has supported Google's webm format. This format supports videos with alpha channels, that is, transparent videos.

First, you need to make a transparent video. in AE, you can export videos with transparent channels, such as AVI and MOV.

But I don't know why an error occurs when converting to webm. I may solve this problem in the future.

The alternative method is to export the sequence frame and convert it to webm through ffmpeg.

Ffmpeg-I just d.png-c: v libvpx-metadata: s: v: 0 alpha_mode = "1"-auto-alt-ref 0 B. webm

The forward d.png refers to a sequence frame image named only numbers, such as 1.png and 2.png. Then B. webm is the exported file.

Then you can import it to Unity.

Pay attention to the sprite size. It is best to put a picture on it first to see the size.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.