steamvr_unity_plugin icon indicating copy to clipboard operation
steamvr_unity_plugin copied to clipboard

No controllers at Build

Open JasonTheC opened this issue 4 years ago • 6 comments

Hello

Using SteamVR v2.7.3 Unity 2020.3.16f1 Using Oculus quest 2 or Dell visor

In unity there are no problems. When I build the game no controllers are connected. The guadian system sees the controllers just not the build. StreamingAssets/SteamVR/ contains all the jsons for binding.

SteamVR V1.2.3 has the controllers at build and in editor.

What is the problem?

EDIT:

Also, no errors:

Multi-casting "[IP] 192.168.1.104 [Port] 55216 [Flags] 2 [Guid] 3067396398 [EditorId] 2073360378 [Version] 1048832 [Id] WindowsPlayer(DESKTOP-TITQ9U1) [Debug] 0 [PackageName] WindowsPlayer [ProjectName] " to [225.0.0.222:54997]...
Started listening to [0.0.0.0:55216]
PlayerConnection already initialized - listening to [0.0.0.0:55216]
Initialize engine version: 2020.3.16f1 (049d6eca3c44)
[Subsystems] Discovering subsystems at path ...
[Subsystems] No descriptors matched for  examples in UnitySubsystems/XRSDKOpenVR/UnitySubsystemsManifest.json.
[Subsystems] 1 'inputs' descriptors matched in UnitySubsystems/XRSDKOpenVR/UnitySubsystemsManifest.json
[Subsystems] 1 'displays' descriptors matched in UnitySubsystems/XRSDKOpenVR/UnitySubsystemsManifest.json
[Subsystems] No descriptors matched for  meshings in UnitySubsystems/XRSDKOpenVR/UnitySubsystemsManifest.json.
GfxDevice: creating device client; threaded=1
Direct3D:
    Version:  Direct3D 11.0 [level 11.1]
    Renderer: NVIDIA GeForce GTX 1070 (ID=0x1b81)
    Vendor:   
    VRAM:     8088 MB
    Driver:   27.21.14.6192
Begin MonoManager ReloadAssembly
- Completed reload, in  2.576 seconds
XRGeneral Settings awakening...
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
UnityEngine.Logger:Log (UnityEngine.LogType,object)
UnityEngine.Debug:Log (object)
UnityEngine.XR.Management.XRGeneralSettings:Awake () (at.../Library/PackageCache/[email protected]/Runtime/XRGeneralSettings.cs:91)

(Filename: .../Library/PackageCache/[email protected]/Runtime/XRGeneralSettings.cs Line: 91)

D3D11 device created for Microsoft Media Foundation video decoding.
[XR] [OpenVR] Registering providers
[XR] [OpenVR] Display lifecyle provider registered
[Subsystems] XRSDKOpenVR successfully registered Provider for OpenVR Display
[XR] [OpenVR] Input lifecycle provider registered
[Subsystems] XRSDKOpenVR successfully registered Provider for OpenVR Input
[Subsystems] XRSDKOpenVR successfully registered Provider for OpenVR Display
[Subsystems] Loading plugin XRSDKOpenVR for subsystem OpenVR Display...
[XR] [OpenVR] is initialized
[Subsystems] Loading plugin XRSDKOpenVR for subsystem OpenVR Input...
<RI> Initializing input.

<RI> Input initialized.

<RI> Initialized touch support.

[XR] XR OpenVR Display Start
[XR] [OpenVR] Set active mirror mode (-2)
[XR] [OpenVR] No hidden area mesh available for eye[0] in active hmd
[XR] [OpenVR] No hidden area mesh available for eye[1] in active hmd
[XR] [OpenVR] Device connecting (status change). OpenVRIndex: 0. UnityID: 0
[XR] [OpenVR] Device connecting (status change). OpenVRIndex: 1. UnityID: 1
[XR] [OpenVR] Device connecting (status change). OpenVRIndex: 2. UnityID: 2
XRTextureManager::RequestCreateTexture
XRTextureManager::RequestCreateTexture
XRTextureManager::RequestCreateTexture
XRTextureManager::RequestCreateTexture
XRTextureManager::SetupRenderTextureFromXRRequest (id: 1 col: 0000000000000000 d: 0000000000000000)
RenderTexture::Create (id: 1)
XRTextureManager::SetupRenderTextureFromXRRequest (id: 2 col: 0000000000000000 d: 0000000000000000)
RenderTexture::Create (id: 2)
XRTextureManager::SetupRenderTextureFromXRRequest (id: 3 col: 0000000000000000 d: 0000000000000000)
RenderTexture::Create (id: 3)
XRTextureManager::SetupRenderTextureFromXRRequest (id: 4 col: 0000000000000000 d: 0000000000000000)
RenderTexture::Create (id: 4)
The referenced script on this Behaviour (Game Object 'StaticLightingSky') is missing!

The referenced script on this Behaviour (Game Object 'Directional Light') is missing!

[XR] [OpenVR] Created Native Color: 20adb6b8
[XR] [OpenVR] Created Native Depth: 20adb938
[XR] [OpenVR] Device connected (status change). Handle: 548174768. OpenVRIndex: 0. UnityID: 0
[XR] [OpenVR] Device connected (status change). Handle: 548174768. OpenVRIndex: 1. UnityID: 1
[XR] [OpenVR] Device connected (status change). Handle: 548174768. OpenVRIndex: 2. UnityID: 2
[XR] [OpenVR] Found device OpenVRIndex:(0) UnityIndex:(0) with input profile:(rift) and name: (OpenVR Headset(Oculus Quest2))
[XR] [OpenVR] Found device OpenVRIndex:(1) UnityIndex:(1) with input profile:(oculus_touch) and name: (OpenVR Controller(Oculus Quest2 (Left Controller)) - Left)
[XR] [OpenVR] Found device OpenVRIndex:(2) UnityIndex:(2) with input profile:(oculus_touch) and name: (OpenVR Controller(Oculus Quest2 (Right Controller)) - Right)
[XR] [OpenVR] Created Native Color: 20ad9478
[XR] [OpenVR] Created Native Depth: 24623eb8
UnloadTime: 0.852400 ms
<b>[SteamVR]</b> Initialized. Connected to oculus : Oculus Quest2 : 1WMHH835831056 :: rift
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
UnityEngine.Logger:LogFormat (UnityEngine.LogType,string,object[])
UnityEngine.Debug:LogFormat (string,object[])
Valve.VR.SteamVR:.ctor () (at .../Assets/SteamVR/Scripts/SteamVR.cs:673)
Valve.VR.SteamVR:CreateInstance () (at.../Assets/SteamVR/Scripts/SteamVR.cs:225)
Valve.VR.SteamVR:Initialize (bool) (at.../Assets/SteamVR/Scripts/SteamVR.cs:103)
Valve.VR.SteamVR_Behaviour:InitializeSteamVR (bool) (at.../Assets/SteamVR/Scripts/SteamVR_Behaviour.cs:119)
Valve.VR.SteamVR_Behaviour:Awake () (at.../Assets/SteamVR/Scripts/SteamVR_Behaviour.cs:100)

(Filename: .../Assets/SteamVR/Scripts/SteamVR.cs Line: 673)

JasonTheC avatar Sep 27 '21 11:09 JasonTheC

Hello,

I have the same problèm with vive trackers: not working in build..

Thank you

Octavarium72 avatar Nov 29 '21 15:11 Octavarium72

I'm afraid the best thing to do is give up on steamvr and use the unity open VR library. It's not as nice to work with as the steamvr but it's stable

JasonTheC avatar Nov 29 '21 16:11 JasonTheC

Thank you so much for your answer. Let's give a try!

Octavarium72 avatar Nov 30 '21 09:11 Octavarium72

There are no errors that come up? Are you making a development build?

keithbradner avatar Dec 01 '21 21:12 keithbradner

Hello, thank you for your answer. There are no errors and no special build settings. image

Octavarium72 avatar Dec 02 '21 08:12 Octavarium72

There are no errors that come up? Are you making a development build?

Even on development builds there were no errors

JasonTheC avatar Dec 02 '21 08:12 JasonTheC