Skip to content

kwahoo2/freecad-pyopenvr

Repository files navigation

FreeCAD PyOpenVR

Moving towards a working implementation of VR in FreeCAD with range support for various VR hardware

Screenshots

Famous-Schenkel-in-VR

Performance-Teaser

Background

This thread continues (the) discussion from a (previous FreeCAD discussion) thread about Oculus Rift. I would like discuss here about wider VR hardware support. A few weeks ago an open VR/AR standard was presented: OpenXR.

Waiting for OpenXR hardware adoption (manufacturers like Oculus or Valve announced future support) I've starded experimenting with another API: OpenVR. OpenVR is not quite open as name suggest - it still needs a proprietary runtime (SteamVR), but unlike Oculus SDK it is supported on different operating systems and supports hardware from other manufacturers.

Initially, I started tinkering with jriegel Rift's implementation, but later i found Python bindings for OpenVR pyopenvr. Basic idea is: write (and experiment with) an implementation in pyopenvr, and then port the code to C++.

source

Prerequisites

Software Dependencies

  • FreeCAD v0.19.xxxxx
  • Python 3.5+
  • SteamVR Runtime (distributed with Valve Steam)

Python libraries

  • numpy
  • pivy.coin
  • openvr
  • sdl2

Hardware

  • Any HMD supported by OpenVR (HTC Vive, Valve Index, Oculus Rift)

Installation and Usage

  1. Install Python libraries
  2. Start SteamVR
  3. Start FreeCAD
  4. Paste freecad-pyopenvr.py contents in to the FreeCAD Python console

Contribute

PR's are welcome!

Discussion

Feedback, thoughts, questions, please direct them to the dedicated FreeCAD forum discussion thread.

License

Check LICENSE for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages