UnityPlugin-AVProVideo icon indicating copy to clipboard operation
UnityPlugin-AVProVideo copied to clipboard

[Android/Windows] Using custom material breaks stereo rendering

Open smitdylan2001 opened this issue 4 months ago • 3 comments

Unity version

6000.0.57

Unity editor platform

Windows

AVPro Video edition

Core

AVPro Video version

3.2.9

Device hardware

Meta Quest 3

Which Android OS version are you using?

12

Unity Graphics API

Vulkan

Video API

media3/ExoPlayer

Texture format

BGRA

Audio output

Unity

Any other Media Player component configuration required to reproduce the issue.

No response

Which output component(s) are you using?

Display uGUI

Any other component configuration required to reproduce the issue.

Custom UI/Default material on Dispay uGUI

Image

The issue

When making a new material, assigning UI/Default shader to it, changing the queue to 3010 to avoid alpha sorting issues, the stereo rendering breaks. Side by side stereo video just displays side by side instead of in 3D

Media information

Sadly the clips are copyrighted, so cannot be shared here. But all side by side content has this issue both on Android and in the Unity Editor

Logcat output


smitdylan2001 avatar Sep 10 '25 08:09 smitdylan2001

I only now see that at runtime a custom shader/material is assigned. Please add a warning if you try to load stereo content on a regular material

smitdylan2001 avatar Sep 10 '25 08:09 smitdylan2001

hmm, it should work in uguidisplay if it switches away from default shader. we're going to look into this.

Chris-RH avatar Sep 10 '25 09:09 Chris-RH

Appreciate it! When using the stereo shader on the material it works, so that's nice since we only have stereo content atm.

Btw something else, is AV1 decoding on Android planned?

smitdylan2001 avatar Sep 10 '25 10:09 smitdylan2001