Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

archilogic-com/aframe-gblock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gBlock Component for A-Frame

A-Frame Component loading Google Poly models from https://poly.google.com. Maintained by archilogic.com.

Demo

Usage

<head>
  <script src="https://aframe.io/releases/0.7.0/aframe.min.js"></script>
  <script src="https://cdn.rawgit.com/archilogic-com/aframe-gblock/6498b71d/dist/gblock.js"></script>
</head>
<body>
  <a-scene>
    // Using Poly API Key
    <a-entity gblock="https://poly.google.com/view/ewsXLyr8OPu?key=YOUR_POLY_API_KEY_HERE"></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 models from poly.google.com (inofficial)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published