Author Topic: VR Support  (Read 1636 times)

PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 968
    • View Profile
VR Support
« on: November 04, 2017, 09:44:31 PM »
When installing MX Bikes a desktop shortcut named "MX Bikes - VR" should be created.
It launches MXB with the "-vr" command line switch, that enables VR support.

If both a Rift and a Vive are installed on the same PC, it's possible to force Oculus using the "-vro" switch, and SteamVR using "-vrs".

In MX Bikes -> Settings -> Input3 it's possible to set the control to reset the VR camera tracking. The default key is F8. It resets the position and rotation of the user interface virtual screen, too.

It is possible to change the Oculus pixel density, creating a text file called oculus.ini in the MXB installation folder and adding the following lines:
Code: [Select]
[render]
pixel_density=1.5

By default, the rendering of both eyes is mirrored to the MXB window.
It is possible to change the mirroring setting creating a text file called oculus.ini or openvr.ini in the MXB installation folder and adding the following lines:
Code: [Select]
[mirror]
eye = 2
The possible values are:
-1: mirroring disabled
0: left eye
1: right eye
2: both eyes

On Oculus only, it is also possible to add, under the "mirror" section
Code: [Select]
post = 1
to show the barrel distorted render in the desktop window.

Note: If the Windows Taskbar overlaps the MXB window preventing the cursor from reaching the bottom of the user interface, please try right clicking on the shortcut icon and, in the Properties, selecting Run Maximized.


Known Bugs
- HTC Vive ( SteamVR ): transparent asphalt in the user interface
« Last Edit: September 15, 2018, 09:27:28 PM by PiBoSo »

NorCal 986

  • Sr. Member
  • ****
  • Posts: 463
    • View Profile
Re: VR Support
« Reply #1 on: June 24, 2018, 03:29:10 AM »
Is this something that still works? I've tried a number of times to create the oculus.ini and openvr.ini txt file but nothing ever changes. Ideally it would be nice to have screen mirroring as just 1 screen, kinda like iRacing or other sims.

teeds

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 805
    • View Profile
Re: VR Support
« Reply #2 on: June 24, 2018, 12:30:38 PM »
Just set mine up and it's working ok using openvr with a vive, had on the right eye only.
"Damn dirt bikers!" - Bubba

NorCal 986

  • Sr. Member
  • ****
  • Posts: 463
    • View Profile
Re: VR Support
« Reply #3 on: June 24, 2018, 03:58:47 PM »
Hmm, maybe it only works for the HTC then? Hopefully someday it can be like other sims where it combines both eyes into 1 image, but obviously there are far more important things to work on before then.

PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 968
    • View Profile
Re: VR Support
« Reply #4 on: June 26, 2018, 02:00:43 PM »
Is this something that still works? I've tried a number of times to create the oculus.ini and openvr.ini txt file but nothing ever changes.

Please make sure that file extensions are shown:
https://www.howtohaven.com/system/show-file-extensions-in-windows-explorer.shtml
« Last Edit: June 26, 2018, 03:40:38 PM by PiBoSo »

PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 968
    • View Profile
Re: VR Support
« Reply #5 on: June 26, 2018, 03:38:46 PM »
An updated version of the oculus.dll file is available at this link:
http://www.mx-bikes.com/downloads/oculus.dll

It should improve mirror support and fix the user interface virtual screen rotation.

NorCal 986

  • Sr. Member
  • ****
  • Posts: 463
    • View Profile
Re: VR Support
« Reply #6 on: June 27, 2018, 03:25:19 AM »
The new oculus.dll is certainly a lot better! I followed those step and it changed the file name to oclulus.ini.txt but still nothing changes. Maybe I'm doing something wrong.

teeds

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 805
    • View Profile
Re: VR Support
« Reply #7 on: June 27, 2018, 07:41:41 AM »
The new oculus.dll is certainly a lot better! I followed those step and it changed the file name to oclulus.ini.txt but still nothing changes. Maybe I'm doing something wrong.

There's your problem, take the .txt off the end of the filename, should just be "oculus.ini".
"Damn dirt bikers!" - Bubba

NorCal 986

  • Sr. Member
  • ****
  • Posts: 463
    • View Profile
Re: VR Support
« Reply #8 on: June 27, 2018, 03:58:34 PM »
That's how it was before, and when I followed the tutorial above on how to show file extensions, that's when it changed the name. Would it make a difference if I was using notepad++ or rich text file?

teeds

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 805
    • View Profile
Re: VR Support
« Reply #9 on: June 27, 2018, 04:19:04 PM »
That's how it was before, and when I followed the tutorial above on how to show file extensions, that's when it changed the name. Would it make a difference if I was using notepad++ or rich text file?

Don't think it matters but I always just use the Windows right click "New>Text Document" to create the file, then change the extension from .txt to .ini
"Damn dirt bikers!" - Bubba

NorCal 986

  • Sr. Member
  • ****
  • Posts: 463
    • View Profile
Re: VR Support
« Reply #10 on: June 27, 2018, 05:13:30 PM »
I wasn't changing the actual file extention, whoops... Works now! 8)

teeds

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 805
    • View Profile
Re: VR Support
« Reply #11 on: July 05, 2018, 02:32:25 PM »
Piboso, is there any way to move the rider view in VR if the HMD used has no positional tracking?
"Damn dirt bikers!" - Bubba

PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 968
    • View Profile
Re: VR Support
« Reply #12 on: July 11, 2018, 02:36:01 PM »
Piboso, is there any way to move the rider view in VR if the HMD used has no positional tracking?

No, at the moment it's not possible.

gokitty199

  • Full Member
  • ***
  • Posts: 102
    • View Profile
Re: VR Support
« Reply #13 on: July 11, 2018, 06:40:59 PM »
it would be nice to be able to adjust the default camera position a little. whenever i play i have to scoot my chair forwards and lower it a little, reset the camera and then back up and raise the chair to have a view thats very close to the barpad. no big deal but would be a nice feature in the far future :)

PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 968
    • View Profile
Re: VR Support
« Reply #14 on: September 15, 2018, 09:37:37 PM »

First post updated with info about the Oculus pixel density.