Skip to content
This repository has been archived by the owner on Nov 4, 2020. It is now read-only.

Commit

Permalink
Fixed Shader Source, Added README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
thestr4ng3r committed Nov 2, 2016
1 parent 3b689ca commit 7508a22
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 4 deletions.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# PSVR Player
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](screenshot.png)

## 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.
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions shader/sphere.frag
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#version 330

/*
* Created by Florian Märkl <[email protected]>
*
Expand All @@ -16,8 +18,6 @@
*
*/

#version 330

#define M_PI 3.1415926535897932384626433832795

uniform sampler2D tex_uni;
Expand Down
4 changes: 2 additions & 2 deletions shader/sphere.vert
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#version 330

/*
* Created by Florian Märkl <[email protected]>
*
Expand All @@ -16,8 +18,6 @@
*
*/

#version 330

uniform mat4 modelview_projection_uni;

in vec3 vertex_attr;
Expand Down

0 comments on commit 7508a22

Please sign in to comment.