MichalSun Posted April 2 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!
pmanakhov Posted May 27 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.
VIVE_chengnay Posted May 28 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?
pmanakhov Posted May 31 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 1
jboss Posted June 21 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
MUKKI00 Posted October 18 Posted October 18 (edited) @pmanakhov Hi sorry, I am trying to implement the passthrough feature using the Elite XR headset, but I am encountering some issues. When I start the game, the following error appears: DllNotFoundException: viveopenxr assembly:<unknown assembly> type:<unknown type> member:(null). After doing some research, I found your example scene and tried to use it. However, during execution, I receive another error: CompositionLayerPassthroughAPI HTC_Passthrough feature instance not found. UnityEngine.Debug:LogError (object). Could you please help me, i am desperate thank you! On 5/31/2024 at 2:01 PM, pmanakhov said: 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 @pmanakhov Hi sorry, I am trying to implement the passthrough feature using the Elite XR headset, but I am encountering some issues. When I start the game, the following error appears: DllNotFoundException: viveopenxr assembly:<unknown assembly> type:<unknown type> member:(null). After doing some research, I found your example scene and tried to use it. However, during execution, I receive another error: CompositionLayerPassthroughAPI HTC_Passthrough feature instance not found. UnityEngine.Debug:LogError (object). Could you please help me, i am desperate thank you! Edited October 18 by MUKKI00
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