This is a single page web appication. oba-r
To install the project just fork it and clone it to your device. Then launch the "project-1-1819" folder.
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
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);
};
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.
- 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