Questions tagged [oculus]

Questions about development for the Oculus Rift, a head-mounted virtual reality display.

The Oculus Rift is a VR headset by Oculus VR. It enables VR applications by providing high-accuracy head tracking (position and orientation) for input and a specialized head mounted display that renders a per-eye view onto each half of the built in LCD/OLED panel and uses lenses to produce collimated light and provide a wide field of view.

674 questions
3
votes
2 answers

what ist the correct Oculus Rift barrel distortion radius function?

i want to implement the barrel shader for the oculus rift in javascript. according to this video (http://youtu.be/B7qrgrrHry0?t=11m26s) the radius function for barrel distortion is: newr = 0.24*r^4+0.22*r^2+1 The result: Reference Image: After…
Cracker0dks
  • 2,422
  • 1
  • 24
  • 39
3
votes
3 answers

warning C4995 vs error C4995

When I build a project (with VS2012) I get folowing output several times: warning C4995: 'DwmEnableComposition': name was marked as #pragma deprecated When I copy the projects sourcefiles into another project (and different solution) I get errors…
Benedikt Bock
  • 1,007
  • 15
  • 37
3
votes
1 answer

Reset/Calibrate Orientation in Oculus Rift w/ Unity

I'm using an Oculus Rift with Unity, and am attempting to allow the user to zero-out the orientation of their device when they push a key. The idea is that the camera is frozen looking in a particular direction, and when the user begins the game,…
IanPudney
  • 5,941
  • 1
  • 24
  • 39
3
votes
1 answer

Oculus Rift, simple example in java failing

I wrote this simple code: public class Test { public static void main(String args[]) { OculusRift oculusRift = new OculusRift(); oculusRift.init(); HMDInfo hdmInfo = oculusRift.getHMDInfo(); …
elect
  • 6,765
  • 10
  • 53
  • 119
3
votes
2 answers

Casting a ray from mouse through distortion matrix

I've searched the board, as well as the oculus board, and unity board. Couldn't really find something that helped. I'm working on a vehicle simulation. Before we started using the oculus, it was just a regular first person perspective. You used a…
gord0
  • 111
  • 5
2
votes
2 answers

Unity Crash when entering Play Mode - Unity XR VR

Unity is crashing when entering the play mode. This does not happen if my Quest 2 is connected to Unity I use the Open / Oculuus XR Plugins I use the Sample Controller example with some custom code Attached to this, you may find the Input Does any…
Fabian
  • 71
  • 2
  • 10
2
votes
1 answer

Compilation errors while building Oculus' Unreal Engine

I’m trying to build the UE4 version from Oculus from the GitHub repository. But during the build I keep getting some errors. I’ll link the Output log right here: https://drive.google.com/file/d/1iLFmV5mZI3r8tJjAbxVqXnlWFcI6tNbj/view?usp=sharing…
Elias Marrero
  • 187
  • 2
  • 15
2
votes
1 answer

How to setup a fast development workflow (plug and play) for Oculus Quest 2 with Unity

How would I go about setting up Unity and Oculus so I can hit Play in Unity and see the results immediately instead of building and running the game on Oculus?
2
votes
1 answer

Can't move camera in A-Frame with Oculus Quest 2

Is it possible to move camera in A-Frame projects with Oculus touch controllers? Can't find any working example.
2
votes
1 answer

Set home-activity to default

I changed my home-activity to a custom application so that whenever the device starts, this application will be opened (Kiosk). Now I would like to reset this so that the default home-activity will be opened. How do I do this? First I disable the…
Jelke
  • 55
  • 6
2
votes
1 answer

Android Permission is not include in final apk using Unity + Oculus Quest

I want to use bluetooth in my Oculus Quest device so I need to include android.permission.BLUETOOTH permission in the .apk generated by Unity. I included the AndroidManifest.xml file below in the ../MyProject/Assets/Plugins/Android/ folder
Pablo Lanza
  • 338
  • 1
  • 8
2
votes
1 answer

Detect Oculus Quest 1 & 2 Headsets in Unity

I'm looking for a way to detect the name of the headset being used in my VR app. I need to distinguish between the Quest 1 & 2 in order to implement the different controller mappings. Methods like XRDevice.model or OVRPlugin.productName don't…
2
votes
2 answers

Unity Oculus Quest game stutters/lags when head is moved from side to side

Firstly, I've built for the Quest and checked the Unity profiler - everything seems good. The weird thing is, when I move my head from side to side I don't see any framerate drops in the profiler but I see a noticeable stutter/lag in the headset.…
spobin
  • 79
  • 1
  • 11
2
votes
1 answer

unity / vrtk does not contain a defination errors

I was using Unity and Oculus together. I recently uninstalled both packages. And now I want to reload them. I import oculus first and then VRTK. However, after importing vrtk I get the following…
badcode
  • 581
  • 1
  • 9
  • 28
2
votes
2 answers

React-360 Oculus Quest won't go into VR Mode

I have to be missing something: I installed node.js, installed react-360, created the Hello360 app but can't get the page to go into VR Mode in my Oculus Quest via the Oculus Browser. It just looks the same as it does on a PC. After googling for a…
Jamie
  • 21
  • 2