# Spectator mode renders faces incorrectly

**URL:** <https://forum.magicleap.cloud/t/spectator-mode-renders-faces-incorrectly/3806>\
**Category:** General\
**Tags:** unity, spectator\
**Created:** [July 19, 2024, 3:24pm UTC](https://forum.magicleap.cloud/t/spectator-mode-renders-faces-incorrectly/3806 "2024-07-19T15:24:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![francisco-augmedi](https://avatars.discourse-cdn.com/v4/letter/f/eb8c5e/32.png) [@francisco-augmedi](https://forum.magicleap.cloud/u/francisco-augmedi)\
**Post date:** [July 19, 2024, 3:24pm UTC](https://forum.magicleap.cloud/t/spectator-mode-renders-faces-incorrectly/3806/1 "2024-07-19T15:24:57Z")

</div>

**Unity Editor version** : 2022.3.11f1  
**ML2 OS version** : 1.8.0  
**Unity SDK version** : 2.1.0  
**Host OS** : MacOS  
**Spectator version** : 1.3.4

The spectator app is rendering faces incorrectly when the ML2 renders them just fine.  
Not sure if it's related but we do use custom compute shaders to render textures onto our meshes.

I took some video captures:  
[brain video](https://www.kapwing.com/videos/669a83e71221cd7ae0f0a4b6)  
[shapes video](https://www.kapwing.com/videos/669a84413b61da011d39ea3b)

In the brain video it looks like the normals are flipped.  
In the shapes video we can also notice that the render order of the meshes is not correct.

---

<div class="post-metadata">

**Author:** ![kbabilinski](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kbabilinski/32/19_2.png) [@kbabilinski](https://forum.magicleap.cloud/u/kbabilinski)\
**Post date:** [July 19, 2024, 10:06pm UTC](https://forum.magicleap.cloud/t/spectator-mode-renders-faces-incorrectly/3806/2 "2024-07-19T22:06:15Z")

</div>

Thank you for the video. If you are using URP I think you may need to under the configuration on your pipeline:

The Intermediate Texture mode on the Universal Render Data Asset should be set to Always (located under Compatibility) and Depth Texture should be enabled on the Universal Render Pipeline Asset (located under Rendering) to ensure correct render order for the ML Spectator rendering camera.

Setting Intermediate Texture to Always and Depth Texture enabled ensures that secondary scene cameras operating outside of a scriptable render pass have proper depth projection and layer order.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/bd9b737a4d45ea243aa7eb177d60a773b806899a.svg) [@system](https://forum.magicleap.cloud/u/system)\
**Post date:** [August 14, 2024, 2:17am UTC](https://forum.magicleap.cloud/t/spectator-mode-renders-faces-incorrectly/3806/3 "2024-08-14T02:17:06Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
