dario Posted December 22, 2020 Share Posted December 22, 2020 Vive Cosmos OpenXR Feature package for Unity After installing the Unity OpenXR plugin you can add the HTC Vive Cosmos Controller Support Feature to OpenXR Features as shown: You can download the HTC Vive Cosmos Controller package preview as a tarball file here: UPDATE: v1.0.0 Unity issues from latest plugin resolved. Download: com.htc.upm.vive.openxr.controllers-1.0.0.tgz previous update: Add common usage “gripButton” for grip-pressed input. Add common usage “triggerButton” for trigger-pressed input Use the package manager to install as either a tarball or if you run into any issue you can unzip it and use the from disk option and point to the json file. Unity includes several samples with their OpenXR package so be sure to install the Controller Sample. This sample will display all the controller's inputs visually for almost all the input because the Cosmos controller has an additional "bumper" button next to the trigger button. As shown you can run in editor connecting to the OpenXR PC runtime. In this case it's the "Default" Vive Cosmos OpenXR runtime. To set it as the default you should select it as the default when you first run the runtime from the Vive Console. This will set the default Windows registry values. To install the Vive Cosmos OpenXR runtime please see: https//forum.vive.com/forum/92-vive-openxr/ Now as you may have noticed above I've added an indicator for the Bumper button status (green when pressed) for both left and right hand controllers for this sample. You can add them with the following steps. 1) Once you've enabled the feature (first screen shot above) we can edit the Controller sample to include the additional indicator by duplicating the Trigger Press visual element, renaming it as "Bumper Press" and moving it slightly to the right of Trigger Press (remember to do likewise for RightHand). 2) To edit the Action binding for this new indicator first double click on the Action Reference field of the Action to Button ISX script component in the inspector as shown above. Once you get the following Input Actions window, you can add the new actions and bind them to the appropriate binding path that the Vive Cosmos Controllers feature provided as shown below and while this window is open also add one for the right hand controller. And with that you can start using all the Vive Cosmos controllers inputs for your OpenXR applications! Note: screen shots don't reflect the latest Unity OpenXR plugin version and will be updated 2 Link to comment Share on other sites More sharing options...
ReptileBeast Posted February 4, 2021 Share Posted February 4, 2021 Hi the profile link seems to have been removed Link to comment Share on other sites More sharing options...
ReptileBeast Posted February 4, 2021 Share Posted February 4, 2021 oh turns out it was because I wasn't signed in Link to comment Share on other sites More sharing options...
狂笑 Posted February 8, 2021 Share Posted February 8, 2021 Hi,I make a HDRP project by unity2020.2.3f1C1. And follow your steps,I download the controllerpackage. But,I Cannot found "bumper Action" In my project . Did I Missed something important? Link to comment Share on other sites More sharing options...
狂笑 Posted February 8, 2021 Share Posted February 8, 2021 0001-5882.mkvThe Video will show you what I have Done. Link to comment Share on other sites More sharing options...
狂笑 Posted February 8, 2021 Share Posted February 8, 2021 Oooooh!I got it! I haven't find CosmosController here before. I just got it after restart Unity. 1 Link to comment Share on other sites More sharing options...
Endaobaby Posted May 10, 2021 Share Posted May 10, 2021 Hi, I followed the steps but it dosen't seem to be working. There's an error saying "Failed to load openxr runtime loader.". What does it mean and are there any possible solutions to it? Link to comment Share on other sites More sharing options...
dario Posted May 10, 2021 Author Share Posted May 10, 2021 Please provide logs/screenshots and steps to reproduce. And versions as this post has not been updated to latest Unity and plugins yet. Link to comment Share on other sites More sharing options...
Endaobaby Posted May 10, 2021 Share Posted May 10, 2021 I am currently using 2020.3.5 version of Unity. I connected my Cosmos and adjusted my settings accordingly. But when I hit Play, the error appear as shown in the screenshot and I don't know what went wrong. (The error: Failed to load openxr runtime loader. UnityEngine.XR.Management.XRGeneralSettings:AttemptInitializeXRSDKOnLoad () (at Library/PackageCache/com.unity.xr.management@4.0.5/Runtime/XRGeneralSettings.cs:148)) ) Please feel free to ask for more information because I'm kinda new to this, and I'm not sure if I miss anything. Thank you so much for replying! Link to comment Share on other sites More sharing options...
dario Posted May 10, 2021 Author Share Posted May 10, 2021 Yes please show what's selected in XR Management - select "Default" for OpenXR runtime - then check ViveConsole to see if it set to default - or check registry to make sure. 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