Skip to content
A simple component for importing google poly models into your A-Frame projects
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
aframe-google-poly-component.js
aframe-google-poly-component.min.js
package.json
screenshot.GIF

README.md

aframe-google-poly-component

Include models from Google Poly in your A-Frame projects! image

Getting Started

Google Poly is a 3D model hosting service that allows creators to upload, remix and share 3D models. You can include these models directly in your aframe projects with this component.

Prerequisites

You will need a Google Poly API key, which can be obtained here: Google Poly API Key

Installation (Scripts)

Download the script. Include it on your page after A-Frame, and all components will be registered automatically.

<script src="aframe.min.js"></script>
<script src="aframe-google-poly-component.min.js"></script>

Usage

In your a-scene tag, include the google-poly attribute with the src: property set as your google poly api key:

<a-scene google-poly="api_key: GOOGLE_POLY_API_KEY" ></a-scene>

Once you've added your google poly api key to the scene tag, add the google-poly attribute to an entity. set the src: attribute to the id from a google poly url (example: poly.google.com/view/7U-93vxPOER)

<a-entity google-poly="src: 7U-93vxPOER;" ></a-entity>

You can also use the wrapped component:

<a-google-poly src="7U-93vxPOER" ></a-google-poly>

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

You can’t perform that action at this time.