Code Monkey home page Code Monkey logo

coolfontwin's Introduction

CoolFontWin

Companion app for PocketStrafe iOS and Android apps

A VR locomotion solution

Allows VR locomotion by running in place. CoolFontWin receives IMU data from mobile devices over WiFi. This is done in a few steps: open a UDP listen socket, register a network service discoverable through Bonjour on the same socket, acquire and manage physical Xbox controllers, virtual gamepads, and joysticks to send input to the user's applications.

High level change-log

  • v1.1 moved most of the functions from the crowded context menu into their own window (WPF/MVVM).

  • v1.0 added support for virtual virtual Xbox 360 controllers.

  • v0.2 began support for multiple sources of input (two mobile phones) and introduced custom sound effects, automatic ClickOnce update-checking in the background. Version 0.2.3 enabled an enlarged context menu when VR is running on the user's system.

Installation

Run attached setup.exe, Windows x64 only.

Building from source

I use VS 2015. All of the required binaries are included in the git repo (lib folder).

Thanks

Check out my GitHub stars for the many open source libraries that I used. A few of the key ones for this application include vJoy, ScpVBus, and Material Design in XAML Toolkit.

coolfontwin's People

Contributors

dependabot[bot] avatar imthebirdman avatar mitchellmcm27 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

imthebirdman

coolfontwin's Issues

Alternatives to the RC filter

The RC filter is simple and works well for smoothing the signal, but introduces a significant lag. It was most noticeable using the VR Joystick Strafe mode, where device orientation determines which direction the character is moving. Device orientation depends on the user's real-world orientation, but also on additional device movement induced by running in place (noise).

More complicated filters have been designed to minimize the lag, e.g., the Butterworth filter. No filter is perfect and there is always a tradeoff between smoothness and lag. For our purposes, the "noise" that needs to be smoothed/eliminated arises from the device moving inside of the user's pocket, and from natural leg motions that aren't perfectly forward-backward but have a rotational component.

Filters that need the entire signal, or even more than one to a few observations at a time, are not useful for our purposes because we need the filter to work in real time.

Update scanner

App should check for updates on startup and prompt user to download.

Discard outdated UDP packets

Assuming almost all packets are eventually delivered, the biggest source of error is receiving packets out of order. We could stamp each packet with an int that goes from say 0 to 999 (to save on packet length) and then resets. This behavior should be implemented using the modulo operator on the CoreMotion loop counter in iOS (t%1000). If CFW receives a packet with stamp smaller than the last one it got, it simply does not use its data (unless the difference is large, say >900, which would indicate that the counter reset).

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.