Git Product home page Git Product logo

webar-test's Introduction

webar-test

AR.js Documentation

AR.js Image Tracking

Prepare image for tracking (NFT)

This quick WebAR example uses AR.js for tracking images (could also track geolocation anchors) and A-Frame as content technology. Other content option to use with AR.js would be THREE.js, but A-Frame is easier for getting started. For instructions and inspiration on what kind of things you can do, have a look here: A-Frame documentation.

Interesting code is in the file index.html. Simplified, "less scary" version of index.html for getting started is index-simple.html.

Live demo: open the T-Rex or OLebre image on your computer/tablet and open the webar-test page on your phone. Point the phone camera at the image and you should see a 3D chest/cube.

For example, you could add you own .png image into the application by using the a-image primitive, details here: a-image. Your own image could be displayed where the tracked image is detected, or any other position. For videos or GIFs/short loops you can use a-video. For starters, you could replace the a-entity tags (3D models) in index.html with a-image or a-video.

Recommended hosting environment for testing is GitHub Pages, but other web host can work just as well.

webar-test's People

Contributors

emllnd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.