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
0
votes
0 answers

How to make OpenVR multiview rendering to work?

I'm optimizing my already working VR rendering by implementing multiview rendering into my custom C++ engine, but can't get the other eye to render. Here's my vertex shader: layout(set=0, binding=2) Buffer positions : register(b2); VSOutput…
SurvivalMachine
  • 7,946
  • 15
  • 57
  • 87
0
votes
1 answer

Having trouble aligning 2D Lidar pointcloud to match the coordinate system of HTC Vive Controller

I have strapped on an RPLidar A1 to an HTC Vive Controller and have written a python script that converts the lidar's pointcloud to XY coordinates and then transforms these points to match the rotation and movement of the Vive controller. The end…
meh301
  • 1
  • 2
0
votes
1 answer

CMake - OpenVR compilation issues

I am currently re-working my game/rendering engine. I am doing it cross-platform so have switched to using a CMake build process. I have had no issues building GLFW or GLAD but ran into problems with openvr It's a fairly basic build right now but…
0
votes
1 answer

How to implement openvr in vtk python?

I can't make openvr and vtk python work together. Currentrly i'm using spyder ide for this. I have done some code in C++ with vtk and openvr just changing vtkRenderer to vtkOpenVRRenderer and so on. But it doesn't work in spyder. import vtk import…
user11929877
0
votes
0 answers

GetCurrentViewProjectionMatrix, get projection matrix from vr hardware using openvr.h

I'm creating a game in (modern) opengl, c++, glm, glfw and openvr.h and currently learning from provided example source code (hellovr_opengl_main.cpp). There are apis found in openvr to provide both the view and projection matrices and used in…
0
votes
2 answers

How to manage HTC Vive controllers power programmatically?

Is it possible to power off Vive controller/tracker programmatically? I see there is an option in SteamVR under each tracked device, but I could not find any references. The only thing I found is polling events of entering and leaving standby mode…
implorer
  • 21
  • 3
0
votes
1 answer

Is it possible to add distortion to the display in the HMD with openvr?

I trying to change the barrel distortion coefficients for the HTC Vive to create a distortion in the HMD. Is OpenVR the best method to do this?
0
votes
1 answer

Intercept Vive controller input?

I'm building an openvr app for steamvr to assist with seated play (my room is small so my tracking area isn't ideal). My app pretty much just adjusts the play-area height when I hold the grip button and "scroll" on the touchpad so that I can reach…
Sakuya
  • 660
  • 5
  • 23
0
votes
1 answer

Resetting HTC Vive Origin/"World"

Was wondering if anyone can help. So I'm attempting to try reset the origin point of "world" on the HTC using OpenVR. e.g. the (0, 0, 0) point as set up during room setup when I had to align the HMD to screen etc. I was wondering if this is…
Kite
  • 51
  • 8
0
votes
2 answers

Convert Texture2D to Byte[] using EncodeToJPG (in OpenVR)

I have one question! I just want, just...convert Texture2D to Byte[] using EncodeToJPG() function! My workspace is Unity and C# Script, + OpenCvSharp. Maybe you think that It is easy, but It have some problem. this script use OpenVR(HTC…
bolero
  • 191
  • 3
  • 16
0
votes
0 answers

SteamVR HDK JSON Error

I'm about at my wit's end right now dealing with the GUI. I'm making a controller to track in VR for a school project, and I am at the stage where I am running simulations to verify my JSON. I had to hand make it because our group already decided on…
0
votes
0 answers

openVR how to render 2D frame for player

I am getting code from hellovr_opengl and would to render 2D frames. In the openvr sdk you should render before calling submit function. What I am doing is generating texture m_itxture then in loop I link rdb data to m_itexture. Here is how my…
Lhou A
  • 69
  • 1
  • 11
0
votes
1 answer

How do I calculate an offset position from OpenVR's TrackedDevicePose_t?

I'm working on 3D digitizing using a Vive controller. I'm using OpenVR to talk to the hardware and PollNextEventWithPose to get the controller's pose at the time the user pressed a button. From the pose, I want to calculate a point that's 177mm…
SSteve
  • 10,550
  • 5
  • 46
  • 72
0
votes
1 answer

openvr how to get track controllers correctly (C#)

I am using openvr with C# and trying to get the controllers. All methods require the "trackedDeviceIndex" of the controller but I am not sure how I would get this id the correct way. I looked up the documentation and can only find this method for…
crani
  • 96
  • 9
0
votes
0 answers

Game Freezes While Switching Between VR and Normal (standalone) Mode

Hi guys I am making a game in which i have both first person mode and VR mode. Till now i am able to select VR mode correctly but after returning to the main menu my game just freezes i don't understand why ? I am using unity GUI for my menu and i…
Syed Anwar Fahim
  • 306
  • 5
  • 15