Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 3.32 KB

readme.md

File metadata and controls

51 lines (36 loc) · 3.32 KB

Augmented Reality

Augmented reality in a WordPress block. Upload any object, and see it in your room using your phone's camera.

Contributors: ryankienstra
Tags: blocks, augmented-reality
Requires at least: 4.9
Tested up to: 5.1
Stable tag: 0.1.0
License: GPLv3
Donate link: http://jdrf.org/get-involved/ways-to-donate/
Requires PHP: 7.1

Build Status Built with Grunt

Description

demo-coffee-cup

This is a Google Codelab with a block editor back-end (the cup shown above is by Poly by Google).

It's experimental, and requires an Android device that can run ARCore, and earlier versions of Chrome Dev or Canary (70-72). Using older browsers like these is only advisable on a testing device, not your normal phone.

Please see the Getting Set Up section of the Codelab. The files from the Google Codelab are mainly copied from its GitHub repo, with slight changes.

Setup

  1. Find .obj and .mtl files for a 3D object, like from Poly or Free3D
  2. In the block (Gutenberg) editor, add an "AR Viewer" block
  3. Select the .obj and .mtl files in the block UI, and click "Save Draft" or "Update": ar-block-demo
  4. View the front-end of the post
  5. Click "Start augmented reality"
  6. Rotate the screen until an anchor appears: ar-viewer-reticle
  7. Click the anchor, and see the 3d object. The object below is from Poly, created by Poly by Google: ar-viewer-cup

Installation

  1. Upload the augmented-reality directory to your /wp-content/plugins directory.
  2. In the "Plugins" menu, find "Augmented Reality," and click "Activate."

Changelog

0.1.0

  • Adds the "AR Viewer" block, with controls to upload .obj and .mtl files.
  • Implements a Google Codelab, with small changes to its JavaScript files.
  • Works on select Android devices, with Chrome Dev and Canary 70-72.