toydev / HC_VRTrial

MIT License
33 stars 1 forks source link

OpenComposite instead of SteamVR #11

Open MakerManu opened 3 weeks ago

MakerManu commented 3 weeks ago

Is there any way to get the mod (or plugins) to recognize OpenComposite and not SteamVR?

toydev commented 2 weeks ago

Hi there,

I just learned about OpenComposite from your issue. I haven’t tried it out yet, but here’s what I found so far:

  1. Download the OpenComposite openvr_api.dll and replace the openvr_api.dll included with the plugin.
  2. In Plugin.cs, modify the IsSteamVRRunning method to disable the SteamVR check.

Example:

private bool IsSteamVRRunning()
{
    return true; // Or add a check for OpenComposite if needed
}

By the way, I’m currently working on migrating to OpenXR, which might also be relevant for future updates.

Give it a try and let me know how it goes!

MakerManu commented 2 weeks ago

Hi thank you for your reply! I'm not an expert so I'm still trying to fully understand how it works, but your method should work, thank you very much and again good work Il Jun 15, 2024, 4:23 AM +0200, toydev @.***> ha scritto:

Hi there, I just learned about OpenComposite from your issue. I haven’t tried it out yet, but here’s what I found so far:

  1. Download the OpenComposite openvr_api.dll and replace the existing openvr_api.dll in your application’s directory.
  2. In Plugin.cs, modify the IsSteamVRRunning method to disable the SteamVR check.

Example: public bool IsSteamVRRunning() { return true; // Or add a check for OpenComposite if needed } By the way, I’m currently working on migrating to OpenXR, which might also be relevant for future updates. Give it a try and let me know how it goes! — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

toydev commented 2 weeks ago

No problem. I’m not an expert either. I think all mod authors are figuring things out as they go. If you need any hints or want to discuss something, feel free to leave a comment.