RenderHeads / UnityPlugin-AVProDeckLink

AVPro DeckLink is a Unity plugin for broadcast CG using Blackmagic capture hardware
https://renderheads.com/products/avpro-decklink/
9 stars 1 forks source link

Multiple Outputs Stops VFX and Physics. #73

Open Caramel-Andrew opened 6 months ago

Caramel-Andrew commented 6 months ago

Sorry if this is not a bug, but I have not yet been able to get this to work even with the demo.

I have two inputs and two outputs. All are working fine. However, when I play any VFX they fail to animate. Actual animations work fine, but Shuriken systems stick on the first frame. If I delete or switch off one of the two outputs, the VFX work fine.

As a test I also added a cube with a RigidBody to the scene. With one output it correctly falls with gravity. With two outputs, it hangs in its start position.

Your Setup (please complete the following information):

To Reproduce Steps to reproduce the behaviour: Create a new project in Unity. Add AVPro DeckLink asset. Open Demo Output Scene.

Duplicate the output components (DeckLink and Camera). Slightly move the second camera so it can be seen easily.

Stick a shuriken particle system in the scene in view of both cameras. Add a cube with a rigid body somewhere so it can fall.

Run the project. For me, the project runs and the animation of the robo arm works as expected. Frame rate counter goes up as expected. (Though materials have to be updated to URP). However, partcicle/shuriken system does not animate and the cube does not fall.

Again, sorry if this is not a bug and I just set something up wrong.

RichRH commented 6 months ago

Hi @Caramel-Andrew,

Thanks for reporting this - I've had a quick look and it appears to be part-bug, part-change in Unity behaviour. In 2021 the above works fine but indeed, in 2023 it behaves as you state (unsure about 2022 as haven't had chance to check yet).

A workaround for the moment is to make sure DeckLink script calls to 'Time.captureFramerate' (generally setting to -1.0f) are commented out - hope that helps?

Cheers,

Caramel-Andrew commented 6 months ago

Hi @RichRH ,

Thank you so much. The workaround you suggested has fixed the problem!

RichRH commented 6 months ago

Hi @Caramel-Andrew,

Great, thanks for letting us know - I'll make sure this fix is in the next release (unsure when that will be yet though).

Cheers,

stale[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.