GithubHelp home page GithubHelp logo

kongmunist / vision-pro-head-hand-tracking-demo Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 0.0 36.51 MB

Starter project for the Apple Vision Pro that tracks each hand joint your head. Tested on visionOS 1.0 and 1.1

Swift 100.00%

vision-pro-head-hand-tracking-demo's Introduction

Head and Hand Tracking on the Apple Vision Pro

I didn't find any minimal code examples for hand and head tracking on Vision Pro, so I wrote one.

Single hand with trackers

The app places markers on each hand joint (and one elbow joint), and places an object above you that tracks your head.

The code is written to be easily understood and extended โ€” build whatever you want! Replace the spheres with cubes! Do custom gestures!

The VisionOS needs an immersive space in order to do custom gestures / ARKit tracking, so you unfortunately won't be able to write gestures that work system-wide. I wanted to enhance the AVP navigational experience using new gestures, so please let me know if you figure out something that works.

Have fun!

Changelog

4/21/24: added some convenience functions for simple gesture detection in AppModel.Swift. Also I wrote a blog post about potential workarounds for custom gestures in normal mode here

Contact

https://andykong.org

Acknowledgements

I started using the code from here.

More pictures

Start menu

Start menu

Both hand tracking, works with pretty weird poses too

Both hands tracked

Both hands tracked

Elbow joint + hands

Both hands tracked

vision-pro-head-hand-tracking-demo's People

Contributors

kongmunist avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.