microsoft / microsoft/MixedReality-GraphicsTools-Unity

Somotimes MRGT StandardShader can't rendering opaque render queue

Open
#193 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
209
Forks
49
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

Sometimes the rendering gets messed up when I introduce MRGT to my Unity project and create a material that applies MRGT shaders

It's strange that this issue seems to be dependent on the local PC, as opening the same project on other PCs using platforms like GitHub sometimes works without any problems. Additionally, in my past experiences, this issue has seemingly resolved itself over time, which raises the possibility of it being a Unity bug.

However, all other shaders except MRGT StandardShader work correctly, so it seems there might be some compatibility or other form of relationship with the MRGT shader.

Even when building to a device, the rendering issue persists on the device side.

I've been aware of the existence of this bug for some time but couldn't reproduce it until now, so I wanted to share this information.

To reproduce

Steps to reproduce the behavior:

  1. Create New UnityProject
  2. Add MRGT package with use MixedRealityFeatureTools
  3. Create New MRGT Material

Expected behavior

Given the issues with reproducibility and the fact that this problem only occurs in local environments even with the same project, it does suggest a higher likelihood of being a Unity issue. However, it's indeed perplexing that MRGT shader is the only one not rendering. Incorporating workarounds and documenting this issue might be necessary.

Screenshots

image

image

Rendering doesn't occur for queues up to 2500 (AlphaTest+50). Rendering begins from 2501 onwards.

image

It renders in the TransparentObject state, but the rendering is incorrect in the OpaqueObject state.

I'm attaching a RenderDoc capture file related to this issue.

image

Your setup (please complete the following information)

  • Unity 2021.3.21f1 (UniversalRP)
  • Graphics Tools Version v0.6.2

Other Dependences is here

image

Target platform (please complete the following information)

  • HoloLens 2
  • UnityEditor (Windows 11 PC DirectX11)

Additional context

RenderDocs CaptureFile is here

MRGTStandardShaderOpaqueRenderingBuginUnity2021.3.21URP(que=2000) (1).zip

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in a new Unity 2021.3.21f1 project with UniversalRP, the MRGT package, and a new MRGT material. Compare StandardShader rendering across opaque and transparent queues on the listed targets, and inspect the provided RenderDoc capture. Done means identifying a reproducible cause or a confirmed workaround and documenting the affected configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
unity
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.