XRTK / com.xrtk.wmr

The Windows Mixed Reality platform components for the XRTK

Home Page:https://github.com/XRTK/XRTK-Core

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting transparent display NearClipPlane to 0 causes "black screen" with artifacts on HoloLens 2

FejZa opened this issue · comments

XRTK - Mixed Reality Toolkit Bug Report

Describe the bug

Setting the near clip plane to 0 for transparent displays in the WMR camera data provider causes the HoloLens 2 to render a black screen only with occasional artifacts appearing on screen.

To Reproduce

  • Set near clip plane to 0 for transparent display in WMR camera data provider
  • Add sample geometry to scene
  • Deploy to device

Expected behavior

The near clip plane setting resets to the min valid value if 0 is entered and logs a warning to the user that the value entered is invalid and was corrected.

Actual behavior

0 is accepted as a value.

Additional Info

Not sure if this affects only WMR but it's the only transparent display device I currently have.