项目作者: suzmas

项目描述 :
Collection of interactive WebVR content designed for use on mobile with Google Cardboard.
高级语言: HTML
项目地址: git://github.com/suzmas/AFrame.git
创建时间: 2017-03-21T19:15:10Z
项目社区:https://github.com/suzmas/AFrame

开源协议:MIT License

下载


A-Frame Scenes

Repo for creating WebVR scenes using A-Frame, Three, and AR.js. If you don’t know about these libraries, they’re javascript based and they’re awesome! I created most of the objects in my scenes with TinkerCAD which is a free browser-based 3D modeling tool.

Moving forward I’d like to:

  1. - enhance mobile performance of my space shooter game
  2. - create multi-scene experiences without page redirects... maybe with React?
  3. - do more things with AR.js
  4. - animated experience with user-camera fixed along path

Getting Started with A-Frame

Option 1: Fork this Git repo

After you have downloaded and extracted this .zip file containing the contents of this repo, open the resulting directory, and you’ll be have your scene ready in these few steps:

  1. npm install && npm start
  2. open http://localhost:3000/

Option 2: Fork this Git repo 🍴🐙

Alternatively, you can fork this repo to get started, if you’d like to maintain a Git workflow.

After you have forked this repo, clone a copy of your fork locally and you’ll be have your scene ready in these few steps:

  1. git clone https://github.com/aframevr/aframe-boilerplate.git
  2. cd aframe-boilerplate && rm -rf .git && npm install && npm start
  3. open http://localhost:3000/

:iphone: Mobile pro tip: Upon starting the development server, the URL will be logged to the console. Load that URL from a browser on your mobile device. (If your mobile phone and computer are not on the same LAN, consider using ngrok for local development and testing. Browsersync is also worth a gander.)


Installation

First make sure you have Node installed.

On Mac OS X, it’s recommended to use Homebrew to install Node + npm:

  1. brew install node

To install the Node dependencies:

  1. npm install

Local Development

To serve the site from a simple Node development server:

  1. npm start

Then launch the site from your favourite browser:

http://localhost:3000/

If you wish to serve the site from a different port:

  1. PORT=8000 npm start

License

This program is free software and is distributed under an MIT License.