Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnityToonShader causes black flickerings (NaN) when using HDRP #324

Open
Haoming02 opened this issue Jul 18, 2023 · 7 comments
Open

UnityToonShader causes black flickerings (NaN) when using HDRP #324

Haoming02 opened this issue Jul 18, 2023 · 7 comments

Comments

@Haoming02
Copy link

Haoming02 commented Jul 18, 2023

Describe the Bug

UnityToonShader causes NaN when using HDRP

To Reproduce

  1. Open a HDRP Project
  2. Apply ToonShader
  3. Look around / Use Recorder to record a footage
  4. See black flickerings caused by NaN

Expected Behavior

... No NaN?

Videos

NaN.mp4
Multiple.mp4
FullScreen.mp4

Environment

  • OS: Windows 10
  • GPU: RTX 3070 Ti
  • Unity Version: 2022.3.4f1
  • HDRP Version: 14.0.8
  • UnityToonShader Version: 0.9.4-preview

Additional Context

  • Forward Lit Shader Mode
  • SSAO Disabled
  • Tried both FXAA and SMAA
  • Enabling Stop NaNs causes the flickerings to be limited to the material; Disabling it causes the whole screen to flash
  • Highlight, Rim Light, MatCap and Outline are all disabled
@Haoming02
Copy link
Author

  • Linear Color Space
  • Graphics API: Direct3D11
    • It's even worse when using Direct3D12...

@H3idi-X
Copy link
Collaborator

H3idi-X commented Jul 19, 2023

We are sorry to hear that UTS doesn’t work well with Recorder and Timeline.
We tried to reproduce the issue but so far not succeeded.
Could you upload the project which you see the issue?

@Haoming02
Copy link
Author

Update: When using Direct3D12, the flickerings can even happen in Scene view without using Recorder or Timeline.

Example

  • In the beginning, you can see the flickering in the Camera Preview
  • At ~3 second, I enabled Stop NaNs. You can see the flickering is now limited to just a part of the capsule
  • At ~10 second, the whole Scene view is flashing when I move around
  • However, these do not happen after I swap the material to HDRP/Unlit at ~20 second
  • Then they start happening again right after I swap back to Toon at ~32 second
Demo.mp4

Environment

This is on another computer and still happens...

  • OS: Windows 11
  • GPU: RTX 3060
  • Unity: 2022.3.2f1

@Haoming02
Copy link
Author

Haoming02 commented Jul 19, 2023

Project Settings & Packages

The above video was shot in a freshly created project

project.zip

@Haoming02
Copy link
Author

Seems to not happen (or at least significantly less) when using Vulkan Graphics API

@H3idi-X
Copy link
Collaborator

H3idi-X commented Jul 23, 2023

Hi, we reproduced the issue in your project. We are on investigation now.

@H3idi-X
Copy link
Collaborator

H3idi-X commented Aug 31, 2023

Hello. We have investigated this issue and unfortunately have not yet been able to resolve it. We apologize for this, but could you please deal with this issue with other APIs, such as Vulkan?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants