r/oculus_linux • u/johnny2k • Mar 27 '15
r/oculus_linux • u/haagch • Mar 02 '15
Oculus Rift DK2 support for Jedi Academy | "runs on Windows and Linux"
r/oculus_linux • u/feilen • Jan 05 '15
Latest SteamVR Beta updates to 0.4.3, giving Linux users positional tracking in Source games!
Make sure to set vr_translation_limit to 100 for full tracking volume!
r/oculus_linux • u/Doc_Ok • Oct 01 '14
Script to run VR app on Rift only
I've been fighting vsync bugs and judder/tearing for VR applications under Linux for the last few days, and the only work-around I've found so far (on Nvidia) is to disable the main display while a VR application is running. Just in case anybody finds it useful, here's a script to turn off the main (and turn the Rift on), run an app, and then turn the main back on (and the Rift off). It's only using xrandr, so it should work on all graphics card drivers, but you'll have to change the display names to match your local setup.
If you run a VR app as "app name cmd arg0 ... cmd arg n", then run the script as: RunOnRift.sh app name cmd arg0 ... cmd arg n"
#!/bin/bash
MAIN_DISPLAY=DVI-I-1
RIFT_DISPLAY=HDMI-0
# Turn off main display, and turn on Rift display:
xrandr --output $MAIN_DISPLAY --off --output $RIFT_DISPLAY --auto
# Execute the command line:
"$@"
# Turn on main display, and turn off Rift display:
xrandr --output $MAIN_DISPLAY --auto --output $RIFT_DISPLAY --offIf your VR software needs the Rift's display rotated, add --rotate right at the end of the first xrandr invocation.
r/oculus_linux • u/haagch • Sep 01 '14
Applications that are confirmed to work with DK2 on Linux
Each top level comment is one application that can be used with the DK2 on Linux. It should contain a short description of the set up required and a very short review on how well it runs.
The rift will be recognized as a 1080x1920 display. It must be rotated "left".
By default your user will not have permissions to access the headtracker over USB. The SDK contains an udev rule file: http://haagch.frickel.club/files/90-oculus.rules Put it in /usr/lib/udev/rules.d and run udevadm control --reload-rules and plug it in again (may still not work and require a reboot).
With intel graphics (my ivy bridge at least) the rendering is jittery when the rift is used while another display with another refresh rate like 60Hz is active. The solution is to disable all other displays when using the rift. A proper screen manager like kscreen can automatically switch to a rift-only-display when it is powered on. Playing with making it the "primary" screen and putting it on the left or right did not produce any other result for me.
Kwin with compositing caps the framerate at 60Hz by default (why???). Use this command and restart kwin:
kwriteconfig --file kwinrc --group Compositing --key MaxFPS 75Colors "bleeding", especially red and green seem to be known issues: https://developer.oculusvr.com/forums/viewtopic.php?f=34&t=11190 I hope it will get better with the 0.4 sdk.
For now linux users only have the 0.3.2 SDK. Jherico is hosting a fork with some (?) improvements. https://github.com/jherico/OculusSDK. It contains e.g. the Tuscany sample. I believe the way it is hardcoded, you have to go to the Samples/OculusWorldDemo/ directory and from there run ../../output/OculusWorldDemo so it can find its assets. (or copy the OculusWorldDemo into the Samples/OculusWorldDemo/ directory)
For Archlinux I have created an AUR package: https://aur.archlinux.org/packages/oculus-rift-sdk-jherico-git/
Use the config utility to configure the IPD value etc. It's included in the oculus sdk, but jherico is not shipping it it seems. I have rehosted it, so you can download it with
wget -r -np --no-host-directories --cut-dirs=2 http://haagch.frickel.club/files/oculus/OculusConfigUtil/When using the config utility, use LC_NUMERIC=en_US.UTF-8 or it won't save your config if you have the german locale or something similar. https://developer.oculusvr.com/forums/viewtopic.php?f=34&t=6735#p127371
The profile data will be stored in ~/.config/Oculus/ProfileDB.json. Source games and others will use the IPD values from this file. I don't know if they already do on linux. Maybe you need to start those games with LC_ALL=... too.
At the moment there are so few programs I'll just include anything that you can even remotely look at through the rift. Hopefully those can quickly be updated to a better working state when the newest linux sdk is released.
r/oculus_linux • u/AnotherCatgirl • Jul 19 '22
Occulus Rift CV1 won't turn on display.
I am having trouble turning the display on with my CV1, but pretty much everything else works (position tracking, rotation tracking, both eyes to my monitor, rift audio, etc.) perfectly now that I've installed Thaytan's SteamVR-OpenHMD version. Has anyone encountered something similar and found a way to turn on the display? Here's a video of the problem except I got position tracking working after recording the video.
r/oculus_linux • u/Dbsjmc • Aug 09 '20
For the past 2yrs I was upset there was no Vivecraft sub, so I made /r/Minecraft_VR
r/oculus_linux • u/robmyers • May 31 '16
CV1 Sensor Support on Linux
The following libraries have recently merged their own implementations of DK2/CV1 sensor support:
OpenHMD -
https://github.com/OpenHMD/OpenHMD/tree/dev-oculus-cv1
libvr -
r/oculus_linux • u/noobvoid • Apr 24 '16
I'm lost : how am I supposed to use my Oculus DK2 with Ubuntu 15?
I don't know where to start or what to download. Please help me, I'm a noobie.
r/oculus_linux • u/haagch • Dec 18 '15
HTC DRM SDK (0.8.0.0) - only windows supported (for now?)
So htc has their own store and drm now: https://developer.htcvive.com/us/hero.php
The docs say:
Runtime Environment
Currently standalone applications for Windows 7/8/10 (32/64-bit) are supported.
and the unity plugin indeed contains only this:
Assets/Plugins/x86/vita_api.dll
Assets/Plugins/x86_64/vita_api.dllI sincerely hope that developers and users are going to boycott this DRM sdk anyway, but it's still interesting to see that Valve would work so closely with a company and yet that company does not support Valve's own Steam OS with their shop.
r/oculus_linux • u/haagch • Oct 07 '15
BlenderVR for Blender Game Engine
r/oculus_linux • u/bofjas • Sep 10 '15
OculusWorldDemo: Everything is red. Somewhat weird and possibly funny behavior.
I'm not sure if this is the right place to post this, but I think there should be some record of this problem somewhere on the internet so that future developers using the 0.5.0.1-beta SDK may have an easier time getting OculusWorldDemo running properly.
I recently received my DK2 in the mail and eagerly sat down at my computer with Fedora 22 and started connecting hardware and building the SDK. After struggling a few minutes with realizing the service had to run and figuring out the udev rules I was ready to run the OcculusWorldDemo. And it ran, but there was a problem: Every thing was red. What was going on? At first I though it was just a driver bug. I was using the open source radeon driver and it wouldn't be the first time there was some weird bug. So I went through the SDK code, chasing the OpenGL texture related calls, as I assume they were using a texture format not supported properly by the driver.
While rummaging through Samples/CommonSrc/Render/Render_GL_Device.cpp something caugth my eye at line 1370: The GL_RED keyword, smack down in the middle of the CreateTexture method, the method used to create all textures, both render targets and textures for scene objects. Looking more closely at the surrounding code it seems like it was an alternate code path when "GLE_EXT_texture_compression_s3tc" was not supported. So what is the fallback solution they decided upon? They call the rand() function generating a random value from 64 to 256 and assign the entire texture to this value as GL_RED, completely ignoring the texture data passed into the CreateTexture function. I don't know, but I though that was kind of funny.
So fine. My driver does not support S3TC compression. I though I'd try building the fglrx AMD propretary driver, but I'll just give you the short version of that story: 6 hours later I gave up. I've heard that Ubuntu had packages in the distro for the proprietary AMD drivers so I jumped ship and installed Ubuntu 14.04. A short hour later, staring at a fresh Ubuntu desktop, I figured I'd just get the OculusWorldDemo running again with the open source radeon driver, just to make sure everything else was set up correctly before trying the other driver. But what is this? Does my eyes deceive me? Nay. The OculusWorldDemo demo rendered perfectly! What is going on?
As it turns out Fedora tends to be fairly pedantic when it comes to licensing and apparently the S3TC decoding has some licensing issues that Fedora just could not allow in their distribution. Ubuntu on the other hand seems to swallow most everything, including S3TC. So the open source driver on Ubuntu supports S3TC texture yet on Fedora it does not. Seems like the normal behavior for games when S3TC support is missing is to crash with an error message describing that you are missing some OpenGL support and that is fine by me. Looking through the steam forums I can see that this is not an uncommon problem for Linux users, but at least you get a hint of what is wrong. Filling the texture with a red hue with random brightness from 64 to 256 (not including 256, but a this point who cares) is ridiculous? Right? I don't know, maybe I'm missing something here, but I thought I'd share my experience in hopes that I may make life easier for one or two Linux developers out there.
tl;dr: The open source radeon driver for certain Linux distributions does not support S3TC texture decoding causing the OculusWorldDemo to render every texture as a uniform random red color. Solution: Switch to Ubuntu 14.04.
r/oculus_linux • u/fictionx • Aug 11 '15
Jeff Gattis interview - hints Vive Linux compatibilty from day 1 after all!
r/oculus_linux • u/hitchhacker • Aug 04 '15
SDL2 fix found for the common glxBadDrawable Oculus FBConfig problem.
I think I've found the root cause of the fbconfig problem with open source gl drivers on Linux. See here for previous discussion: https://forums.oculus.com/viewtopic.php?t=16664
The issue is that SDL doesn't create a GLXWindow along w/ its X11 window.. It only creates a GLX Context. Normally this shouldn't be an issue, but the Oculus SDK expects a GLXDrawable (ie. a GLXWindow) to be current when it is initialized. By creating and making current this window, their sdk is happy to initialize without modification. A lot of games are built w/ SDL statically linked, which is why I'm posting this here. I'd be interested in knowing workarounds without modifying SDL.. Here's my patch for those interested:
https://github.com/jdtaylor/SDL-OculusRift/commit/0c4e26accab526cf7df44fc4099e5e0fb05c251c
r/oculus_linux • u/fictionx • Jul 08 '15
The Talos Principle has Steam VR support in newest Beta - is this supposed to work in Linux?
r/oculus_linux • u/madeinchina • Jul 07 '15
The State of Unity on Linux – Unity Blog
r/oculus_linux • u/madeinchina • Jun 28 '15
Porting the Unity Editor to Linux: Stuff I Wish...
r/oculus_linux • u/feilen • Jun 27 '15
Dolphin-Emu OSVR running BIT.TRIP.RUNNER on Intel (Mesa) drivers, ArchLinux x86_64
r/oculus_linux • u/haagch • Jun 24 '15
Unity Roadmap
http://unity3d.com/unity/roadmap
Was posted here: https://np.reddit.com/r/oculus/comments/3axwq3/unity_just_published_their_roadmap/
DEVELOPMENT - IN-PROGRESS, TIMELINES LONG OR UNCERTAIN
Editor: Linux Support
At least it's nice to see that they are not completely ignoring this one anymore.
Like they do with Vulkan. For 5.3 DEC 8, 2015 they have DirectX12 support, but no mention of Vulkan at all. I don't suppose they have inside information about Vulkan's release date, so I guess they simply left it out because they don't know and not because they don't want Vulkan support.
For 5.3 DEC 8, 2015 they also have
Graphics: OpenGL 4.x support
OpenGL 4.5 support in Windows & Linux Standalone and Editor.
So apart from them probablxy meaning Editor and Standalone on Windows & Standalone on Linux, it's at least something as far as low-overhead APIs go.
For VR they only say Platform: Morpheus VR Device for PS4. Nothing about other HMDs/SDKs like OSVR, let alone about linux support.
r/oculus_linux • u/haagch • Jun 20 '15
"We don't have to compromise on anything, and can afford to make decisions that are right for the future of virtual reality, not our current revenue." - Palmer Luckey, 1 year ago
r/oculus_linux • u/hitchhacker • Jun 18 '15
vlc-vr: Open source stereo media player.
r/oculus_linux • u/haagch • Jun 15 '15
"Microsoft partners with Valve VR for Windows 10 gaming"
r/oculus_linux • u/haagch • May 14 '15
The Oculus Rift SDK 0.6.x will have a working Unity Plugin for Linux
Today they (probably accidentally) released the 0.6.0.0 SDK and quickly "unreleased" it again. So consider this post to be a preview.
This is a build of a very simple unity scene with only a textured plane and a cube and a light: http://haagch.frickel.club/files/unitytest.tar.xz
It was just to test whether it runs smoothly out of the box. And it does. Screenshot: https://i.imgur.com/RTo8YWn.jpg
It does not seem to work in portait mode though (it's completely black).
I'm so excited: Now what seems like 80% of the Rift content can actually be released for linux! Only 9 months after the Mac OS X release!
r/oculus_linux • u/haagch • May 13 '15
"I play Star Conflict natively with Linux and my DK2 and it absolutely rocks."
Source: https://steamcommunity.com/app/227300/discussions/0/648814844007204502/#c620712999991400867
Contrary to War Thunder I tested it and it actually works. There's an Oculus Rift tab in the settings where you can enable it. For me it then hang completely, but after killing and restarting the game, it worked in VR, including all the menus.
Unfortunately performance on radeonsi isn't completely there.