Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
141 stars 2 forks source link

VideoTextureAssetMetadata doesn't correctly report transparency #3098

Open gameboycjp opened 1 month ago

gameboycjp commented 1 month ago

Describe the bug?

The HasAlpha field on the VideoTextureAssetMetadata component doesn't correctly report transparent video. I've tested with movs, using both QT-RLE (re-encoded from ProRes4444 footage) and ProRes4444 footage. The alpha channel is correctly used in supported materials.

To Reproduce

Put a VideoTexture reference from a transparent video into a VideoTextureAssetMetadata component. The HasAlpha field will be set to false, despite the video having alpha.

Expected behavior

The HasAlpha field should be marked as true when transparent video is inputted.

Screenshots

Image

Resonite Version Number

Beta 2024.10.8.1349

What Platforms does this occur on?

Windows

What headset if any do you use?

Desktop

Log Files

DESKTOP-3EE2DAL - 2024.10.8.1349 - 2024-10-19 13_54_40.log

Additional Context

I put together a tool to quickly show the Length and HasAlpha fields on a sticky note, and show off if footage is transparent by placing the video texture on an Unlit quad with alpha blending in front of a white PBS quad. It has an asset frame to quickly assign the reference from an imported video. resrec:///U-gamethecupdog/R-9989427D5FBF66243A05D07790647B99FDCF004863A826B45C9736E14108903E

Reporters

@gamethecupdog

Frooxius commented 1 month ago

Can you provide a sample video with transparency so we can test this please?

gameboycjp commented 1 month ago

The animated Made With Resonite clip from #3070 is the one I used. To test QTRLE I had to re-encode it with FFMPEG. https://drive.google.com/file/d/1MjPyw7onZf_J69UBDEqBxFDdhCAJJTCy/view?usp=sharing