GithubHelp home page GithubHelp logo

stanrepo / project-1-1819 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cmda-minor-web/project-1-1819

0.0 0.0 0.0 14 MB

Zoek in de de collectie van de OBA | project 1 @cmda-minor-web · 2018-2019

HTML 14.76% CSS 9.71% JavaScript 75.53%

project-1-1819's Introduction

OBA-R

Summary

This is a single page web appication. oba-r

Table of contents

  1. Live demo
  2. Install
  3. Features
  4. API
  5. Design decisions
  6. To-do

1. Live Demo

https://oba-ar.netlify.com

2. Install

To install the project just fork it and clone it to your device. Then launch the "project-1-1819" folder.

3. Features

This project features an Augmented Reality experience for visitors of the Public Library of Amsterdam. It uses the ar.js library and a-frame. Users can type in a query and select submit. The sourcecode wil then call the library's API and renders the title, author and short description in AR back to the user via a camera instance.

The homepage renders the earth in AR-view by default

With Camera Entity Without Camera Entity View After submitting a Query View After Selecting a object from the Query

4. API

Connecting To the API and retrieving information:

async function callAPI(){
    var query = document.querySelector('#inputField').value;
    localStorage.clear();
    console.log('API called')
    const api = new API({
        key: "1e19898c87464e239192c8bfe422f280"
    });
    const stream = await api.createStream("search/" + query + "&facet=type(movie)");
    stream
        .pipe((res) => {
            template(res)
        })
        .catch(console.error);
};

5. Design Decisions

I chose for a augmented reality approach to this project because making AR web based is a relatively new technology. This encouraged me to use different tools and find my way through new problems which in turn, granted me experience on a-frame and ar.js.

6. To-do

  • Render data form OBA API to the browser
  • Add a Camera entity
  • Add AR-objects to the view that show off potential of web-based-AR
  • Setup Marker entity for ar.js
  • Setup live view on Netlify
  • Add user search input functionality
  • Setup routes for node.js
  • Modulize docs
  • Take out global variables
  • Fix filter problem for image data from API
  • Add more Shadowing Effects

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.