GithubHelp home page GithubHelp logo

sivak1rl / psmove-unity5 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from drenerdo/psmove-unity5

0.0 2.0 0.0 32.12 MB

Plugin for using PSMove as input in Unity 5

License: MIT License

C# 98.01% GLSL 0.78% Batchfile 1.21%

psmove-unity5's Introduction

  _____   _____ __  __  ______      ________      _    _       _ _         _____ 
 |  __ \ / ____|  \/  |/ __ \ \    / /  ____|    | |  | |     (_) |       | ____|    
 | |__) | (___ | \  / | |  | \ \  / /| |__ ______| |  | |_ __  _| |_ _   _| |__  
 |  ___/ \___ \| |\/| | |  | |\ \/ / |  __|______| |  | | '_ \| | __| | | |___ \ 
 | |     ____) | |  | | |__| | \  /  | |____     | |__| | | | | | |_| |_| |___) |
 |_|    |_____/|_|  |_|\____/   \/   |______|     \____/|_| |_|_|\__|\__, |____/ 
                                                                      __/ |      
                                                                     |___/       

Plugin for using PSMove as input in Unity 5.3.4p1 (Oculus SDK 1.3).

Check out this video to see some tracking in action.

This is adapted from the psmove-ue4 plugin and inspired by UniMove.

Overview

This library is inteded as a way for Unity5 developers to iterate at their desk on tracked VR controller games/applications when you have limited or no access other advanced tracking solutions in the office. The PS3 Move controller on the PC has tracking that isn't as good as Valve's or Oculus' solution, but with some filtering, it's good enough for developer iteration, and it's super cheap.

This library is built on top of the psmoveapi, a C library for reading raw data from a PS move controller. As awesome as the base psmove library is, it was missing a few pieces of functionality that made it work well for VR applications. Cboulay and I have been adding new VR specific functionality in his fork of psmoveapi. My fork has the most recent changes, but I try and push most my work to his fork, with the exception of the minor tweaks I do to better support this Unity plugin. Point being, if you want to make tweaks to the psmoveapi.dll or psmovetracker.dll used by this plugin, you'll need to clone my fork, not cboulay's and build it locally.

This plugin works in Windows 64-bit (7/8.1/10), though LibUSB drivers for the camera in Win7 are flakey at times.

Working features

  • Position and orientation of multiple controllers.
  • Button presses trigger events.
  • Trigger-button value (0-255)
  • Set vibration (0-255)
  • Controller color changes
  • Coregistration with the Oculus DK2 camera pose estimation tool
  • Calibration mat based tracking camera pose estimation tool (https://www.youtube.com/watch?v=33cWRaCC9hU)
  • MultiCamera support
  • Position tracking filter (using Kalman filter or LowPass filter)
  • Yaw-drift free orientation filter using Iterative Jacobian Gradient Descent algorithm

Planned features

Install & Use

Read the Wiki.

psmove-unity5's People

Contributors

brendanwalker avatar hipstersloth avatar binaryshift avatar sivak1rl avatar mhdante avatar

Watchers

James Cloos avatar  avatar

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.