MichalSun Posted April 2 Share Posted April 2 Hi! I've been building my app in unity (2021.3.33f1) and bumped into an error log: "CompositionLayerPassthroughAPI HTC_Passthrough feature instance not found." Passthrough worked in previous version of the app. Now I just get black background. I'm using "VIVE OpenXR Plugin 2.2.0" with enabled Composition layer and Passthrough features in the XR Plugin Management. I'm also starting the passthrough with: void OnEnable() { ID = CompositionLayerPassthroughAPI.CreatePlanarPassthrough(LayerType.Underlay); } What might be an issue there? Please help! Link to comment Share on other sites More sharing options...
pmanakhov Posted May 27 Share Posted May 27 The same here. I followed all the steps from https://developer.vive.com/resources/openxr/unity/tutorials/passthrough/ one-to-one. I even tried downgrading OpenXR Plugin from 2.3.0 to 2.0.0. No luck. I'm using Unity 2021.3.8f1 with HTC Vive XR Elite. Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted May 28 Share Posted May 28 Hi @MichalSun @pmanakhov, Could you double check again if Composition Layer and Passthrough is checked? If it is checked, could you try unchecked and checked again? And, will it work using our sample scenes under "Assets\Samples\VIVE OpenXR Plugin\<version>\VIVE OpenXR Samples\Samples\Passthrough\Scenes" folder? Link to comment Share on other sites More sharing options...
pmanakhov Posted May 31 Share Posted May 31 Alright, I've just recreated the Unity project following the same steps on another machine and, surprisingly, it worked. I'll leave the link to my Unity project on GitHub here as a template (https://github.com/pmanakhov/VivePassthroughTemplate) if anyone needs it in the future Link to comment Share on other sites More sharing options...
jboss Posted June 21 Share Posted June 21 I ran into the same problem. The sample scene worked fine, so I looked at the differences. and found that I had to change the camera settings. You need to set Clear Flags to Solid Color and then background to a color with 0 opacity. I think it would be good to mention this in the explanation at https://developer.vive.com/resources/openxr/unity/tutorials/passthrough/ It now only describes that you should copy the gameobjects from the sample scene, but if you already have a camerarig in your scene you don't want to do this. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now