Unity-Technologies / com.unity.webrtc

WebRTC package for Unity
Other
753 stars 192 forks source link

[BUG]: MSAA with Forward Rendering in HDRP causes a flickering rescaling of the stream #639

Closed doctorpangloss closed 2 years ago

doctorpangloss commented 2 years ago

Package version

2.4.0-exp.6

Environment

* OS: Windows 10
* Unity version: 2021.2

Steps To Reproduce

  1. Create a Forward rendering HDRP scene with MSAAx2 or higher enabled.
  2. Observe the stream flickers between the correct scale and a much larger scale.

Current Behavior

Flickering between a correctly scaled picture and a weirdly overlarge picture.

Expected Behavior

MSAA should probably work, not sure why it wouldn't. Is the antialiasing property on the render texture relevant?

Anything else?

No response

karasusan commented 2 years ago

memo: WRS-252

doctorpangloss commented 2 years ago

In a few weeks I'll have time for a reproduction. MSAA is important.

karasusan commented 2 years ago

Is this a same issue? https://forum.unity.com/threads/msaa-with-render-texture-on-hdrp.1118305/

doctorpangloss commented 2 years ago

Exploring some fixes this week - I will try what the user said.

doctorpangloss commented 2 years ago

Resolved in 2.4.0-exp7

doctorpangloss commented 2 years ago

I can reproduce this in a scene that uses Low Resolution Transparent via a VFX graph particle effect. Pretty tricky. I'll prepare a reproduction for you soon.

It appears to stretch the canvas wide.

karasusan commented 2 years ago

@doctorpangloss Could you share the video recording the issue?

doctorpangloss commented 2 years ago

@doctorpangloss Could you share the video recording the issue?

I'll do it before the week ends. I will discuss with my Unity support, maybe we can setup a meeting and I'll share my work with you.

karasusan commented 2 years ago

@doctorpangloss I am waiting for sharing the video, thanks.

doctorpangloss commented 2 years ago

This has been resolved! Thank you