Playing a Video With Transparency in UI

0

I have followed the steps here on video playback, and was able to set up a script canvas to play the video on launch. I was also able to add an image with a Render Target SpriteType, and made sure that the target name matched the texture name in the Video Playback component.

In short, the video plays, and it plays in the UI fine.

The problem is that this video has certain transparent areas that show up as black on the screen (covering up whatever is behind the video). I have messed with the material settings, and with the color sliders in the UI, and the black area is still there.

  • Is this a limitation of ffmpeg? Looking here, it appears that ffmpeg cannot decode an alpha channel in a video for playback.
  • If not, what am I doing wrong? I have tried taking the frames of the video an putting them into a spritesheet, but that ended up crashing the editor (the final image was 120000x1280). Using a Flipbook animation is not an option for me in this case.
已提問 6 年前檢視次數 178 次
4 個答案
0
已接受的答案

Hi @REDACTEDUSER

It doesn't sound like you're doing anything wrong. The video player doesn't currently support playing back video with alpha. This is something that we would like to work on in the future. We're also planning on updating Flipbook animation to allow using a series of sprite files rather than one sprite sheet.

已回答 6 年前
profile picture
專家
已審閱 1 個月前
0

Hey @REDACTEDUSER

已回答 6 年前
0

@REDACTEDUSER

已回答 6 年前
0

Hello @Amonster_LMBR! Is there any update on this particular issue?

已回答 6 年前

此貼文已關閉:已停用新增新答案、評論和投票功能。