microsoft / MixedRealityToolkit-Unity

This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
https://aka.ms/mrtkdocs
MIT License
6.02k stars 2.12k forks source link

AssetBundle Is Visible Only in Left Eye #11561

Closed purpleharp closed 1 year ago

purpleharp commented 1 year ago

Describe the bug

I Create an Empty Scene and Load a cube by AssetBundle, The Cube Is UnVisible in RightEye, How to handle it. My Platform is Hololens

Your setup (please complete the following information)

Target platform (please complete the following information)

Additional context

Add any other context about the problem here.

shaynie commented 1 year ago

@purpleharp, this sounds like your Render Mode is set to Single Pass Instanced, but the cube has a material that uses a shader that doesn't support single pass. The MRTK standard shader supports single pass, so let us know if you are already using it. If it is a custom shader, take a look here for how to modify it to support single pass: https://docs.unity3d.com/Manual/SinglePassInstancing.html

AMollis commented 1 year ago

@purpleharp can you kindly follow-up with @shaynie's question?

We suspect that the shader you are using doesn't support single pass instancing. The simplest test is to set the mesh's material to one of the built-in MRTK materials. The MRTK shader correctly supports single pass instancing.

AMollis commented 1 year ago

@purpleharp closing this issue as external issue.

If you find that there is a problem with the MRTK2 shaders, please open a new issue