Git Product home page Git Product logo

cardboard's Introduction

#Google Cardboard VR Toolkit Library Project

CAUTION: This is decompiled from JAR using JD-GUI. No guarantees.

At present cardboard.jar is provided as binary along with treasure hunt cardboard sample at https://github.com/googlesamples/cardboard/

Google (+Christian Plagemann) replied on Google+ Cardboard & VR Developers Community promising the sources.

Sources are coming. cardboard.jar just contains the binaries at this point.

In the meantime, these sources are to serve the enthusiasts. Personally am taking the NDK route, minimizing Java in my code, using these Java sources as reference for C/C++ NativeActivity.

The toolkit (library) simplifies many common VR development tasks, including:

  • Lens distortion correction.
  • Head tracking.
  • 3D calibration.
  • Side-by-side rendering.
  • Stereo geometry configuration.
  • User input event handling.

Internal classes handle math for sensor input to orientation:

  • vector
  • matrix
  • filtering

Very few modifications were done after decompiling cardboard.jar using JD-GUI tool.

  • The decompiler has replaced several named constants with the respective values. Left it so.
  • Decompiler didn’t bother with proper line wrapping, nor did I.
  • Just one line class description comments for public classes/interfaces were added.
  • For full comments, refer to Google's public documentation https://developers.google.com/cardboard/api/reference/packages

Made a minor change to let volume buttons cause the same effect as magnet pull on cardboard.

Usage:

  • Import this project as a library project.
  • Use it along with treasure hunt sample (also provided from the same github handle as a different project)

cardboard's People

Contributors

raasun 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.