Skip to content

requireHmd is false but still Could not initialize OpenVR: Error code: Init_HmdNotFound #111

@crdanfitz

Description

@crdanfitz

I am trying to use the SteamVR plugin for Unity without an HMD or controllers, but with a Tracker (2018).
image

I imported the camera rig but disabled the Camera and controllers. I then added an empty GameObject with Steam VR_Tracker Object script attached. See setup below.
image
When running in the editor, I get an OpenVR error:

[OpenVR] Could not initialize OpenVR. Error code: Init_HmdNotFound
UnityEngine.Debug:LogError (object)
Unity.XR.OpenVR.OpenVRLoader:Initialize () (at Library/PackageCache/com.valvesoftware.unity.openvr@411bd1ecffdc-1614121125000/Runtime/OpenVRLoader.cs:195)
UnityEngine.XR.Management.XRGeneralSettings:AttemptInitializeXRSDKOnLoad () (at Library/PackageCache/com.unity.xr.management@4.0.7/Runtime/XRGeneralSettings.cs:148)

I set requireHMD to false in Steam\config\steamvr.vrsettings so I was hoping it would continue when it failed to find an HMD.

System:
Unity Editor 2021.1.12f1
SteamVR: 1.21.4 beta
SteamVR plugin: 2.7.3 (sdk 1.14.15)
OpenXC Plugin: 1.2.8
Windows 10 Pro 64bit, 16GB memory, Nvidia Quadro M3000M

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions