tomas-polach / aframe-gblock

Aframe component loading google blocks content (inofficial)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gBlock Component for A-Frame

gBlock Component by 3d.io for A-Frame loading remixable google blocks models.

NOTE: gblock is now included in the 3d.io library. This helps us to provide continuous improvements in performance, compatibility and reliability. While keeping this repo alive we recommend to use https://dist.3d.io/3dio-js/1.x.x/3dio.min.js in your projects.

Demo

Usage

<head>
  <script src="https://aframe.io/releases/0.7.0/aframe.min.js"></script>
  <script src="https://dist.3d.io/3dio-js/1.x.x/3dio.min.js"></script>
</head>
<body>
  <a-scene>
    <a-entity gblock="https://vr.google.com/objects/dVG0XJrpRJC"></a-entity>
  </a-scene>
</body>

Want to make changes?

Installation

1. Make sure you have Node installed.

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

brew install node

2. Clone git repo

git clone https://github.com/archilogic-com/aframe-gblock.git

3. Install dependencies

npm install

5. Start local development server

npm start

6. Launch site from your favourite browser:

http://localhost:3000/

Acknowledgements

Based on gltf component from A-Frame using GLTF loader from three.js.

License

Distributed under an MIT License.

About

Aframe component loading google blocks content (inofficial)

License:MIT License


Languages

Language:JavaScript 63.4%Language:GLSL 36.6%