arbh Posted June 14, 2023 Share Posted June 14, 2023 I am trying to use the XR Elite's color passthrough to build an AR demo but cannot get it to work. I have configured my project according to the documentation and have added the Wave Rig to an empty scene. The project runs fine with direct preview and everything works except the passthrough. I am following the instructions in this tutorial: https://hub.vive.com/storage/app/doc/en-us/UnityXR/UnityXRPassthrough.html I created a new script where I set the "Interop.WVR_ShowPassthroughUnderlay" to true in the start function and the script is attached to the camera in the Wave Rig gameobject. Still, I only see a black screen when the app runs. I tried running the example scene for passthrough in Samples - Essence in the XR plugin but again I get a back screen instead of the camera feed. Any help is appreciated! Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted June 15, 2023 Share Posted June 15, 2023 Hi @arbh, Did you try this? Is your project running on Android platform? Link to comment Share on other sites More sharing options...
arbh Posted June 16, 2023 Author Share Posted June 16, 2023 Hi @chengnay, Yes, I did but I still get the same result. I see the following warning in Unity, maybe it is relevant: "OnRenderImage() possibly didn't write anything to the destination texture! UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)" The project is running on Android. Link to comment Share on other sites More sharing options...
Jack Le Posted June 17, 2023 Share Posted June 17, 2023 Thanks for the thread link, I will try to solve my issue and if I face any problem, I will message you. Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted June 18, 2023 Share Posted June 18, 2023 Hi @arbh, Could you list the version of plugins(Unity Editor, SDK, ...etc) that you are using? On 6/16/2023 at 5:53 PM, arbh said: OnRenderImage() possibly didn't write anything to the destination texture! UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) Are you running it using Direct Preview? Link to comment Share on other sites More sharing options...
arbh Posted June 18, 2023 Author Share Posted June 18, 2023 Hi @chengnay, I am using Unity Editor 2021.3.25f1 and Vive Wave SDK 5.3.0-r.26.1 Yes, I am running it using Direct Preview. I just tested and when I build an APK and install it on the device, the passthrough works but it does not work using Direct Preview. Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted June 19, 2023 Share Posted June 19, 2023 Hi @arbh, Yes, passthrough does not work using Direct Preview. Sorry for the inconvenience. Link to comment Share on other sites More sharing options...
arbh Posted June 19, 2023 Author Share Posted June 19, 2023 @chengnay Please add this to the documentation, I wasted a lot of time trying to make this work 1 Link to comment Share on other sites More sharing options...
Jack Le Posted June 22, 2023 Share Posted June 22, 2023 (edited) Yeah, I agreed with you Edited June 22, 2023 by Jack Le 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