Giter Club home page Giter Club logo

theparallaxview's Introduction

TheParallaxView

Depth illusion by 3D head tracking and off-axis projection on iPhoneX

Uses Unity, UnityARKitPlugin and Xcode 9.2

Project made in Unity 2017.3.0f3

gif gif

Note that this is a monoscopic effect. When using the app IRL, the illusion is best seen with ONE EYE - the other eye closed. (Also works great for video since video is monoscopic). For a stereo effect some type of glasses would be needed (anaglyph or active) and the app adapted for it.

Info on method and code: TheParallaxView Article

Detailed Build Instructions

  1. Clone or download the repository
  2. Make sure you have the ARKitPlugin folder already on your computer. If not, open Unity and get it from the Asset Store. (This step cannot be done after opening TheParallaxView because that will overwrite the project settings when importing it). If it’s the first time using ARKitPlugin, make sure you can build the Face Tracking examples and run them on the device.
  3. Copy the ARKitPlugin folder into TheParallaxView/Assets
  4. Start Unity and open the TheParallaxView
  5. Check "ARKit uses Face Tracking" checkbox in Assets/UnityARKitPlugin/Resources/UnityARKitPlugin/ARKitSettings.asset
  6. Double-click the HeadTrack3D scene
  7. To see a good preview, set Game view to 2436 x 1125 pixels (which is iPhone Landscape resolution)
  8. File>Build Settings - select iOS and hit “Switch Platform”
  9. Click “Player Settings” and under “Other Settings”, insert your Apple Developer Signing Team ID (alternatively, select Team ID later on in Xcode)
  10. Back in the Build Settings, hit “Build”. Create a folder called “Builds”, navigate into it, then choose a name for your build such as “IOS”. Hit Save. Now an Xcode project is generated by Unity.
  11. Start Xcode 9.2 and open Unity-iPhone.xcodeproj that was created in the last step and hit Run.

theparallaxview's People

Contributors

algomystic avatar

Watchers

Derick Warshaw 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.