Git Product home page Git Product logo

cardboard-swift's Introduction

Virtual Reality + Swift

This is a port of Google's Cardboard SDK to Swift and iOS. It is inspired by a Java decompilation and C++ port by Ricardo Sánchez-Sáez.

##Notes

Build

Download / clone the repo, open in Xcode, and click build and run. Easy!

Info & Warnings

This was tested and works reasonably well on an iPhone 6+.

The entire project was written in 1 day, and a programmer's best friend -- copy/paste -- was heavily involved. There are sure to be bugs.

"... this looks like a C++ programmer writing Swift..."

Indeed! This was written primarily an exercise to learn Swift. I'd love to learn how to make it more idiomatic (Swift-y? Swift-onic? Swift-arific?) either via pull-requests or direct email.

Why and what's the point?

From Surely You're Joking, Mr. Feynman!:

He says, "Feynman, that's pretty interesting, but what's the importance of it? Why are you doing it?"

"Hah!" I say. "There's no importance whatsoever. I'm just doing it for the fun of it." His reaction didn't discourage me; I had made up my mind I was going to enjoy physics and do whatever I liked.

I went on to work out equations of wobbles. Then I thought about how electron orbits start to move in relativity. Then there's the Dirac Equation in electrodynamics. And then quantum electrodynamics. And before I knew it (it was a very short time) I was "playing" - working, really - with the same old problem that I loved so much, that I had stopped working on when I went to Los Alamos: my thesis-type problems; all those old-fashioned, wonderful things.

It was effortless. It was easy to play with these things. It was like uncorking a bottle: Everything flowed out effortlessly. I almost tried to resist it! There was no importance to what I was doing, but ultimately there was. The diagrams and the whole business that I got the Nobel Prize for came from that piddling around with the wobbling plate.

License

This is based on Google's Cardboard, and above mentioned repos which are themselves a derivation of Cardboard. As for whatever "license delta" applies to the code in this repo, you're free to do whatever you want (obviously, there are no warranties provided).

cardboard-swift's People

Contributors

endavid avatar nzff avatar readmecritic 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.