This project is a proof-of-concept, showing how to use Facebook's React to generate a VR experience that works with Google Cardboard.
Currently, it renders a panorama of Mars taken by NASA, in stereoscopic 3D.
There's also a demo letting you view the famous Utah teapot.
There are two demos:
These will work in a desktop browser (tested in Chrome and Safari), but are best viewed in a Google Cardboard viewer (tested with iPhone 5s and Mattel View-Master).
First, you'll need to have npm
installed. It comes with node. tsd
is optional (but recommended) if you want type definitions for use in TypeScript; install it with npm install -g tsd
if you don't already have it.
npm install
tsd install # Optional.
node_modules/.bin/bower install
node_modules/.bin/tsc
node_modules/.bin/webpack-dev-server --content-base www/
open http://localhost:8080/
To access the dev server from your phone, you may need to specify your computer's IP address in a --host
parameter to webpack-dev-server
.
npm install
tsd install # Optional.
node_modules/.bin/bower install
node_modules/.bin/tsc
node_modules/.bin/webpack
# Files are in www/ directory.
Contributions are welcome. Send a PR.