MovieTextures: Support for alpha channel RGBA and other color formats
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Panda3D |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Panda3D version: 1.10.0pre (git 34068dc)
OS: Windows 7 64bit
According to https:/
In order to allow an adequate and straightforward way to support videos with alpha channel, RGBA needs to be implemented. Additionally, to save further bandwidth on the PCI express bus and allow higher resoulution video streams and/or more simultanious playing MovieTextures, other formats such as YUV420 and YUVA420 could be implemented to be sent out to the graphics card. Implementing retaining the source format and sending that to the graphics card could allow resolving the alpha channel issue together.
Reproduction:
1. Compile Panda3D with a recent FFmpeg build with libvpx (a recent build from https:/
2. Download the attached AlphaChannelPNG.zip and convert it to a video file with alpha channel. E. g.:
ffmpeg -framerate 25 -i AlphaChannel%
3. rename AC.webm to AC.mov, so that Panda regocnizes the file being a video.
4. run pview with the video file, e. g.: pview AC.mov
Expected: You'll see a red box floating around in front of the grey background.
Issue: You'll see the red box in front of a black background. The area that is rendered black is transparent in the video file. For comparison you could run pview with one of the source PNG files.
This comment adds the converted and renamed AC.mov from step 2 to this report. The file is encoded in VP9 in 'yuva420p' format by FFmpeg.