Questions tagged [openvr]

OpenVR is an API and runtime that allows access to VR hardware from multiple vendors without requiring that applications have specific knowledge of the hardware they are targeting.

The OpenVR API provides a game with a way to interact with Virtual Reality displays without relying on a specific hardware vendor's SDK. It can be updated independently of the game to add support for new hardware or software updates.

OpenVR was once called the "Steamworks VR API". SteamVR is the related server that runs on the client and implements the OpenVR API for desktop applications to use.

Official SDK is available on Valve Software's GitHub.

Documentation for the API is available in the wiki.

More information on OpenVR and SteamVR can be found on http://steamvr.com

88 questions
2
votes
2 answers

How to detect position of Vive base stations?

So I'm completely new to Unity and VR but for a project I need to detect the positions of the base stations. I tried googling, but since I don't know all the lingo I don't really know where and what to look for. All I can find is how to detect the…
sollniss
  • 1,895
  • 2
  • 19
  • 36
2
votes
1 answer

How to use from OSVR in C++?

I want to use from OSVR plugin, but I don't know how it exactly works. In OpenVR I have a framebuffer for each eye and when I write something on that buffers then I see them in glasses and I'm using from HTC Vive. But now I don't know where those…
masoud khanlo
  • 189
  • 1
  • 14
2
votes
0 answers

How to get raw image from SteamVR driver

My question is, how could i get the raw image with the help of the driver in order to pass it to the controller software so that it can display the game frames in vr mode. I looked in the documentations and i found this…
Christian
  • 21
  • 1
  • 3
2
votes
1 answer

How to implement in jna a structure sizeof() with an union type

I updated the jvm openvr binding to the last openvr version, 1.0.5, but I am unsure about one thing. In cpp, there is the IVROverlay class with this virtual SetOverlayIntersectionMask function: virtual EVROverlayError SetOverlayIntersectionMask( …
elect
  • 6,765
  • 10
  • 53
  • 119
2
votes
2 answers

Jna, Pointer already mapped to Proxy interface

I am trying to do a kotlin port of the openvr java binding and also updating it to 1.0.3 I got at the point of writing the IVRSystem struct/class I wrote all the methods manually to be sure that won't be any error from the automatic translator in…
elect
  • 6,765
  • 10
  • 53
  • 119
2
votes
1 answer

questions of transform matrix in VR

I have a problem about matrix transformation in OpenVR api. m_compositor->WaitGetPoses(m_rTrackedDevicePose, vr::k_unMaxTrackedDeviceCount, nullptr, 0); in the demo which the openvr gives: const Matrix4 & matDeviceToTracking = m_rmat4DevicePose[…
2
votes
1 answer

Who calls Present() (if anyone) when using Steam's OpenVR?

I'm new with both directx and openvr, and trying to wrap my head around how the OpenVR compositor API works. The docs call for rendering each eye and handing each one to the compositor via Submit(). But I'm a bit confused about how Present() factors…
aggieNick02
  • 2,557
  • 2
  • 23
  • 36
1
vote
1 answer

Why GetDeviceToAbsoluteTrackingPose(...) doesn't return the HMD position in OpenVR?

I'm trying to implement a basic OpenVR C++ app. This is my code: #include #include #include #include int main() { vr::EVRInitError eError = vr::VRInitError_None; vr::IVRSystem * pvr =…
pfp
  • 31
  • 4
1
vote
0 answers

Why does SteamVR forget about my OpenVR dashboard app?

I set my application to auto-launch which does not throw any error and I can see my app in SteamVR: auto apperror = vr::VRApplications()->SetApplicationAutoLaunch(applicationKey.c_str(), true); if (apperror != vr::VRApplicationError_None) { …
Jared
  • 2,978
  • 4
  • 26
  • 45
1
vote
1 answer

OpenVR: failed to find interface ''IVRCompositor_027"

I cloned the openVR repo and went directly to compile the driver_sample and hellovr_dx12 and hellovr_opengl projects. The builds were successful. But both the helloVR applications failed to launch with an error: Failed to find interface…
Noob
  • 103
  • 9
1
vote
0 answers

SteamVR Frame spikes when creating a single thread

I have a native C++ application that uses SteamVR/OpenVR. During some frames I am creating multiple threads to distribute some work. All of those threads must finish before continuing, so I instantly call join on them. Despite the multithreaded…
alektron
  • 87
  • 1
  • 10
1
vote
1 answer

Trouble understanding OpenVR driver API

My end goal is to make a VRidge lightweight clone to understand the OpenVR API, but I'm struggling to understand how to get my code to display something. As a starting point, instead of my phone, I want to create a window as the HMD (SFML, SDL, you…
Xobtah
  • 464
  • 7
  • 20
1
vote
0 answers

why openvr GetPoseActionDataForNextFrame is not getting position of controllers

I'm trying to create simple application using OpenVR and OpenGL. Headset tracking and rendering is working, but I'm not getting position of controllers. Example code from here https://github.com/ValveSoftware/openvr/wiki/API-Documentation works, and…
LovelyHanibal
  • 317
  • 2
  • 13
1
vote
1 answer

openvr: move in view direction

I am programming an application with openvr and opengl and I want the camera to move in the direction it is looking at. So when you put on the hmd and look in a certain direction the virtual camera should fly in that direction so you can move…
1
vote
0 answers

Why VRCapture can't record the samples of openvr

Help! Why VRCapture can't record the samples of openvr(I have tested openvr-1.8.19 and openvr-v.1.6.10b version)? The result video is black. But works well with other VR games I got from steams.Thank you. My computer: AMD Ryzen 7 1700X…
Tim Wong
  • 19
  • 4