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
전문가
검토됨 한 달 전
0

Hey @REDACTEDUSER

답변함 6년 전
0

@REDACTEDUSER

답변함 6년 전
0

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

답변함 6년 전

이 게시물은 마감됨: 새 답변, 댓글 및 투표 추가가 비활성화되었습니다.

관련 콘텐츠