GithubHelp home page GithubHelp logo

thestr4ng3r / psvr Goto Github PK

View Code? Open in Web Editor NEW
69.0 12.0 16.0 146 KB

Cross-platform 3D 360/180 video player for Playstation VR

License: GNU General Public License v3.0

CMake 10.58% C++ 84.22% GLSL 5.20%
psvr playstation-vr libvlc qt5 360-video

psvr's Introduction

PSVR Player

Disclaimer: This project is not endorsed or certified by Sony Interactive Entertainment LLC.

This is a cross-platform 3D 360/180 video player for the Playstation VR headset. It uses libvlc to stream videos to OpenGL in order to display them on the headset. For rotational tracking, it reads the data from the HID device using hidapi. A GUI is provided using Qt 5. It has been tested on Windows and Linux so far.

This project has been made possible after emoRaivis found out how to get the tracking data from PSVR and developed the app MacMorpheus, which is essentially the same as this project, but as an exclusive Mac application. It is available here: https://github.com/emoRaivis/MacMorpheus. A big thanks to him!

Warning

This program uses only a roughly estimated symmetrical field of view and does not apply any lens correction distortion. This means, the projection in the headset is not perfectly correct, which can lead to motion sickness.

Screenshot

Screenshot

Download

Windows binaries are provided here: https://github.com/metallicent/psvr/releases

For Linux, you will have to compile the program yourself for now.

Setup

emoRaivis has made a nice wiring diagram with instructions on how to set up PSVR for the PC: https://github.com/emoRaivis/MacMorpheus

Supported Formats

Since libvlc is used, a huge variety of file formats and codecs is supported.

An arbitary projection angle can be used in combination with one of these modes:

  • Monoscopic
  • 3D Over/Under
  • 3D Side by Side

TODO / Known Issues

  • Find out / measure accurate values for the asymmetrical FOV of the HMD and apply correct barrel distortion.
  • libvlc outputs the frame data as BGR instead of RGB on different systems. A checkbox has been added as a temporary workaround to switch between both modes.
  • Audio seems to stop working when stopping the video on Windows 10.

About

Created by Florian Märkl: https://www.metallic-entertainment.com

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

psvr's People

Contributors

int-0 avatar romanbukin avatar thestr4ng3r avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

psvr's Issues

Feature requests

Hello, could you add some features to your player?

  1. New minimalist interface maybe like this:

  2. Support TrueOpenVR vr standard (open source vr standard) for Windows version. Sample for get data (yaw, pitch, roll) with API. It is also necessary to run the video window ("PSVR HMD") on screen (HKEY_CURRENT_USER\Software\TrueOpenVR parameter "ScreenIndex", docs), whose index can be obtained in the Windows registry.

  3. Hotkeys to play - pause (space), stop, and move (CTRL + Left or CTRL + Right to fast and Left or Right to slow change position).

  4. Would also like to be able to stop, rewind and play inside VR, for example, by pointing the head down and selecting items with head tracking.
    unnamed

Thanks.

Video not on sphere

Hello.
I tried release and seems all works fine except a video is like I watch it on monitor in front of me instead of sphere where I can turn around. Tried with all settings and they just change way the video is rendered on this virtual monitor.
Can you advise?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.