SlideShare a Scribd company logo
@dougsillars
Augmented Reality on the Web:
Building an ARt Gallery
Doug Sillars
May 26, 2019
Pyconweb
@dougsillars
Contact Me:
@DougSillars
Doug.Sillars@gmail.com
www.dougsillars.com
Doug Sillars
Freelance Developer Relations
Performance Audits: Web/Native
Workshops:
Performance/Images/Video/AR
http://bit.ly/HighPerformanceAndroidApps
Virtual Reality
Virtual Reality
https://www.flickr.com/photos/68158920@N08/17742136272
Virtual Reality
Virtual Reality
Augmented Reality
Augmented Reality
Augmented Reality
• Wearing fancy occulus with cameras
• Really $$$
Augmented Reality –
Smartphone
https://www.flickr.com/photos/bellemarematt/28124392062
https://www.flickr.com/photos/bagogames/28628142444
Augmented Reality –
Smartphone
https://www.flickr.com/photos/bellemarematt/28124392062
https://www.flickr.com/photos/bagogames/28628142444
AR/VR- in the Browser
• What we can do today
• What is coming tomorrow
AR/VR- in the browser
• What we can do today
• A-Frame
• https://aframe.io
• https://github.com/dougsillars/ARtGallery
AR/VR- in the browser
• What we can do today
• A-Frame
• https://aframe.io
• https://github.com/dougsillars/ARtGallery
VR with A-Frame
https://dougsillars.github.io/ARtGallery/aframeHW.html
VR with A-Frame
https://dougsillars.github.io/ARtGallery/aframeHW.html
VR with A-Frame
https://dougsillars.github.io/ARtGallery/aframeHW.html
VR with A-Frame
https://dougsillars.github.io/ARtGallery/aframeHW.html
VR with A-Frame
https://dougsillars.github.io/ARtGallery/aframeHW.html
Building a Gallery
https://dougsillars.github.io/ARtGallery/aframeroom.html
VR ART
https://dougsillars.github.io/ARtGallery/aframeroomart.html
VR ART
https://dougsillars.github.io/ARtGallery/justart.html
Front Wall
VR ART
https://dougsillars.github.io/ARtGallery/justart.html
Front Wall
2m up
VR ART
https://dougsillars.github.io/ARtGallery/justart.html
VR Art Animation
https://dougsillars.github.io/ARtGallery/justart1.html
VR More Art
https://dougsillars.github.io/ARtGallery/aframeroomart2.html
VR More Art
https://dougsillars.github.io/ARtGallery/aframeroomart2.html
VR More Art
https://dougsillars.github.io/ARtGallery/aframeroomart2.html
GLTF Models
GLTF Models
VR Models Are Large
We won’t forget optimization!!
AR with A-Frame
We’ll use AR.js to add AR functionality to the page
3D objects are placed with Markers:
AR Markers
http://bit.ly/ARHiro
AR Markers
Create Your Own Markers
https://jeromeetienne.github.io/AR.js/three.js/examples/mark
er-training/examples/generator.html
Creates an image to print and tape to
the wall.
Creates a .patt pattern file for the
browser
AR Markers
Create Your Own Markers
https://jeromeetienne.github.io/AR.js/three.js/examples/mark
er-training/examples/generator.html
Creates an image to print and tape to
the wall.
Creates a .patt pattern file for the
browser
AR Markers
Create Your Own Markers
AR Markers to Create A Scene
https://dougsillars.github.io/ARtGallery/ARt.html
Optimisations for AR/VR
• Images are integral to the view – we want them to load quickly
Optimisations for AR/VR
• Reduce File Size
Optimisations for AR/VR
• Reduce File Size
• Resize images (to power of 2)
https://res.cloudinary.com/dougsillars/image/upload/h_1024/v1552460601/
VanGogh-starry_night_qoohur.jpg
Optimisations for AR/VR
Optimisations for AR/VR
Optimisations for AR/VR
• Optimize Quality
https://res.cloudinary.com/dougsillars/image/upload/h_1024,
q_auto,/v1552460601/VanGogh-starry_night_qoohur.jpg
Optimisations for AR/VR
• Optimize Format
https://res.cloudinary.com/dougsillars/image/upload/h_1024,
q_auto,f_auto/v1552460601/VanGogh-
starry_night_qoohur.jpg
Optimisations for AR/VR
• Optimize Format
https://res.cloudinary.com/dougsillars/image/upload/h_1024,
q_auto,f_auto/v1552460601/VanGogh-
starry_night_qoohur.jpg
Optimisations for AR/VR
• Optimize Format
https://res.cloudinary.com/dougsillars/image/upload/h_1024,
q_auto,f_auto/v1552460601/VanGogh-
starry_night_qoohur.jpg
1.8 MB -> 323 KB
Optimisations for AR/VR
• Optimize Format
https://res.cloudinary.com/dougsillars/image/upload/h_512,
q_auto,f_auto/v1552460601/VanGogh-
starry_night_qoohur.jpg
1.8 MB -> 93 KB
Optimisations for GLTF
Draco Compression optimizes .bin files
AR with WEBXR
AR with WEBXR
• All WebXR Demos require:
• Android 8.0+
• Chrome Canary v70-72 (late 2018)
• Flags enabled:
• WebXR Device API
• WebXR Hit Test
• ARCore installed
Protip:
If using WebXR a lot, prevent Canary
from auto-updating in Play Store
WEBXR Hit Test
https://codelabs.developers.google.com/codelabs/ar-with-webxr/#4
WEBXR Hit Test
https://dougsillars.github.io/ar-with-
webxr/WebXrARt/
Optimisations for WebXR
1024X1024 1024X1025
https://res.cloudinary.com/dougsillars/image
/upload/x_230,y_128,w_512,h_512,c_crop/
w_256/v1552682248/stabilization_yegbkb.gi
f
850 KB -> 174 KB
Optimisations for aGIF
Optimisations for PNG
https://res.cloudinary.com/dougsillars/image/upl
oad/q_auto,w_256/c_crop,w_256,h_256/v15526
82248/Anchor_rzjbco.png
• Optimise quality, shrink to 256
KB wide
• Crop to 256x256
• 36 KB -> 2.2 KB
Loading WEbXR Art Gallery (Optimized)
Conclusions
• AR on the web is available today with A-Frame
• AR with Hit Points is coming
• AR does not have to be processor intensive, nor utilize huge
amounts of data
Let’s build!
• Art Files you can use:
• https://res.cloudinary.com/dougsillars/image/upload/w_1000/v1551634938/scream_qbwybi.jpg
• https://res.cloudinary.com/dougsillars/image/upload/w_1000/v1551634946/monalisa_nlcskz.jpg
• https://res.cloudinary.com/dougsillars/image/upload/w_1000/v1551634942/Mural_del_Gernika_s9ld
ah.jpg
• https://res.cloudinary.com/dougsillars/image/upload/v1552460601/VanGogh-
starry_night_qoohur.jpg
• https://res.cloudinary.com/dougsillars/image/upload/v1553694737/CAPPELLA_SISTINA_Ceiling_oosz
7w.jpg
• https://res.cloudinary.com/dougsillars/image/upload/v1553694758/last_supper_hykuux.jpg
• https://res.cloudinary.com/dougsillars/image/upload/v1553694762/The_Nightwatch_kkzvus.jpg
• Try: Sketchfab.com for 3D Models
Links
Code: https://github.com/dougsillars/ARtGallery
https://github.com/dougsillars/ar-with-webxr
WebXR spec: https://www.w3.org/TR/2019/WD-webxr-20190205/
Cloudinary: https://cloudinary.com
Love Building with Video and Images?
Media Developer Expert
mde-comm@cloudinary.com
Become a
Setup
• https://github.com/dougsillars/ARtGallery
git clone https://github.com/<username>/ARtGallery
Seeing your Code
GitHub Account No GitHub Account
Details:
https://gist.github.com/jgravois/5e73b56fa7756fd00b89
Seeing your Code
Local Webserver
python -m SimpleHTTPServer 1337
In Browser: Localhost:1337

More Related Content

What's hot

Warfel jessie-igniteslideshow the importance of band management.
Warfel jessie-igniteslideshow the importance of band management.Warfel jessie-igniteslideshow the importance of band management.
Warfel jessie-igniteslideshow the importance of band management.
Jessie Warfel
 

What's hot (20)

A rt gallery gdgcork
A rt gallery gdgcorkA rt gallery gdgcork
A rt gallery gdgcork
 
A rt gallery cardiff
A rt gallery cardiffA rt gallery cardiff
A rt gallery cardiff
 
A rt gallery london-fullstack
A rt gallery london-fullstackA rt gallery london-fullstack
A rt gallery london-fullstack
 
A rt gallery gdgkarlsruhle
A rt gallery gdgkarlsruhleA rt gallery gdgkarlsruhle
A rt gallery gdgkarlsruhle
 
A rt gallery limerick-galway
A rt gallery limerick-galwayA rt gallery limerick-galway
A rt gallery limerick-galway
 
A rt gallery webcamp-zg
A rt gallery webcamp-zgA rt gallery webcamp-zg
A rt gallery webcamp-zg
 
A rt gallery devfestlondon
A rt gallery devfestlondonA rt gallery devfestlondon
A rt gallery devfestlondon
 
A rt gallery gdgmadrid
A rt gallery gdgmadridA rt gallery gdgmadrid
A rt gallery gdgmadrid
 
ARt gallery workshop
ARt gallery workshopARt gallery workshop
ARt gallery workshop
 
A rt gallery coding-serbia_novisad
A rt gallery coding-serbia_novisadA rt gallery coding-serbia_novisad
A rt gallery coding-serbia_novisad
 
A rt gallery hub387
A rt gallery hub387A rt gallery hub387
A rt gallery hub387
 
A rt gallery pantalks
A rt gallery pantalksA rt gallery pantalks
A rt gallery pantalks
 
The Gulf Tower project
The Gulf Tower projectThe Gulf Tower project
The Gulf Tower project
 
Galaxies
GalaxiesGalaxies
Galaxies
 
Free Microsoft Apps
Free Microsoft AppsFree Microsoft Apps
Free Microsoft Apps
 
The Art + Science Marketing - Gianluca Diegoli - #FMX18
The Art + Science Marketing - Gianluca Diegoli - #FMX18The Art + Science Marketing - Gianluca Diegoli - #FMX18
The Art + Science Marketing - Gianluca Diegoli - #FMX18
 
Adaptive Mobile UX Design
Adaptive Mobile UX DesignAdaptive Mobile UX Design
Adaptive Mobile UX Design
 
Responsive Images FCIP July 2013
Responsive Images FCIP July 2013Responsive Images FCIP July 2013
Responsive Images FCIP July 2013
 
Warfel jessie-igniteslideshow the importance of band management.
Warfel jessie-igniteslideshow the importance of band management.Warfel jessie-igniteslideshow the importance of band management.
Warfel jessie-igniteslideshow the importance of band management.
 
Annie leibovitz
Annie leibovitzAnnie leibovitz
Annie leibovitz
 

Similar to A rt gallery pyconweb

The Future of Design isn't Just the Web - WebVisions 2011 Workshop
The Future of Design isn't Just the Web - WebVisions 2011 WorkshopThe Future of Design isn't Just the Web - WebVisions 2011 Workshop
The Future of Design isn't Just the Web - WebVisions 2011 Workshop
Samantha Starmer
 
Don't a Digital Dinosaur - Web 2.0 2011
Don't a Digital Dinosaur - Web 2.0 2011Don't a Digital Dinosaur - Web 2.0 2011
Don't a Digital Dinosaur - Web 2.0 2011
Samantha Starmer
 

Similar to A rt gallery pyconweb (19)

ARt gallery
ARt galleryARt gallery
ARt gallery
 
OSCAL: Free and Open Source Tools for Image and Video Performance
OSCAL: Free and Open Source Tools for Image and Video PerformanceOSCAL: Free and Open Source Tools for Image and Video Performance
OSCAL: Free and Open Source Tools for Image and Video Performance
 
Bitrzr - Ignite Portugal Tecnológico
Bitrzr  - Ignite Portugal TecnológicoBitrzr  - Ignite Portugal Tecnológico
Bitrzr - Ignite Portugal Tecnológico
 
Don't be a Digital Dinosaur - Design for the Space Between
Don't be a Digital Dinosaur - Design for the Space BetweenDon't be a Digital Dinosaur - Design for the Space Between
Don't be a Digital Dinosaur - Design for the Space Between
 
Hackference
HackferenceHackference
Hackference
 
Agile Intro + Learning Game
Agile   Intro + Learning GameAgile   Intro + Learning Game
Agile Intro + Learning Game
 
Reading gdg images
Reading gdg imagesReading gdg images
Reading gdg images
 
PyconUK: Fast and Beautiful Images
PyconUK: Fast and Beautiful ImagesPyconUK: Fast and Beautiful Images
PyconUK: Fast and Beautiful Images
 
The Future of Design isn't Just the Web - WebVisions 2011 Workshop
The Future of Design isn't Just the Web - WebVisions 2011 WorkshopThe Future of Design isn't Just the Web - WebVisions 2011 Workshop
The Future of Design isn't Just the Web - WebVisions 2011 Workshop
 
Turin webperf meetup
Turin webperf meetupTurin webperf meetup
Turin webperf meetup
 
Oggcamp Fast and Beautiful Images
Oggcamp Fast and Beautiful ImagesOggcamp Fast and Beautiful Images
Oggcamp Fast and Beautiful Images
 
Don't a Digital Dinosaur - Web 2.0 2011
Don't a Digital Dinosaur - Web 2.0 2011Don't a Digital Dinosaur - Web 2.0 2011
Don't a Digital Dinosaur - Web 2.0 2011
 
Milano ux
Milano uxMilano ux
Milano ux
 
Create Successful Cross Channel Experiences - IA Summit 2011
Create Successful Cross Channel Experiences - IA Summit 2011Create Successful Cross Channel Experiences - IA Summit 2011
Create Successful Cross Channel Experiences - IA Summit 2011
 
The Future of Design is Not Just the Web - Web Visions Workshop 2011
The Future of Design is Not Just the Web - Web Visions Workshop 2011The Future of Design is Not Just the Web - Web Visions Workshop 2011
The Future of Design is Not Just the Web - Web Visions Workshop 2011
 
SWONtech News for May, 2012
SWONtech News for May, 2012SWONtech News for May, 2012
SWONtech News for May, 2012
 
Making Good Use of Your Company's Story
Making Good Use of Your Company's StoryMaking Good Use of Your Company's Story
Making Good Use of Your Company's Story
 
A Potpourri Of Web Tools
A Potpourri Of Web ToolsA Potpourri Of Web Tools
A Potpourri Of Web Tools
 
The Importance of Storytelling in Web Design, WordCamp Miami 2013
The Importance of Storytelling in Web Design, WordCamp Miami 2013The Importance of Storytelling in Web Design, WordCamp Miami 2013
The Importance of Storytelling in Web Design, WordCamp Miami 2013
 

More from Doug Sillars

More from Doug Sillars (20)

Fastandbeautiful belfast
Fastandbeautiful belfastFastandbeautiful belfast
Fastandbeautiful belfast
 
Fastandbeautiful gdg sacremento
Fastandbeautiful gdg sacrementoFastandbeautiful gdg sacremento
Fastandbeautiful gdg sacremento
 
Fastandbeautiful gd glittlerock
Fastandbeautiful gd glittlerockFastandbeautiful gd glittlerock
Fastandbeautiful gd glittlerock
 
Fastandbeautiful webinale
Fastandbeautiful webinaleFastandbeautiful webinale
Fastandbeautiful webinale
 
Ai powered images-pythonljubjana
Ai powered images-pythonljubjanaAi powered images-pythonljubjana
Ai powered images-pythonljubjana
 
Fastandbeautiful zagrebtechsauna
Fastandbeautiful zagrebtechsaunaFastandbeautiful zagrebtechsauna
Fastandbeautiful zagrebtechsauna
 
Video js zagreb
Video js zagrebVideo js zagreb
Video js zagreb
 
Vkmdp cologne
Vkmdp cologneVkmdp cologne
Vkmdp cologne
 
Ai powered images-gdgtirana
Ai powered images-gdgtiranaAi powered images-gdgtirana
Ai powered images-gdgtirana
 
Ai powered images-sarajevo
Ai powered images-sarajevoAi powered images-sarajevo
Ai powered images-sarajevo
 
Ai powered images-zurichpydata
Ai powered images-zurichpydataAi powered images-zurichpydata
Ai powered images-zurichpydata
 
Fastandbeautiful vienna
Fastandbeautiful viennaFastandbeautiful vienna
Fastandbeautiful vienna
 
Ai powered images-opieaivienna
Ai powered images-opieaiviennaAi powered images-opieaivienna
Ai powered images-opieaivienna
 
Fastandbeautiful devfest london
Fastandbeautiful devfest londonFastandbeautiful devfest london
Fastandbeautiful devfest london
 
Ai powered images-mobileera
Ai powered images-mobileeraAi powered images-mobileera
Ai powered images-mobileera
 
Fastandbeautiful oredev
Fastandbeautiful oredevFastandbeautiful oredev
Fastandbeautiful oredev
 
Qa fest kiev_when its just too slow
Qa fest kiev_when its just too slowQa fest kiev_when its just too slow
Qa fest kiev_when its just too slow
 
Armadajs video
Armadajs videoArmadajs video
Armadajs video
 
Fastandbeautiful novi sad
Fastandbeautiful novi sadFastandbeautiful novi sad
Fastandbeautiful novi sad
 
Belgrade when its just too slow
Belgrade when its just too slowBelgrade when its just too slow
Belgrade when its just too slow
 

Recently uploaded

Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 

Recently uploaded (20)

Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Agentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdfAgentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdf
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
 
In-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT ProfessionalsIn-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT Professionals
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 

A rt gallery pyconweb

Editor's Notes

  1. https://dougsillars.github.io/ARtGallery/aframeHW.html
  2. https://dougsillars.github.io/ARtGallery/aframeHW.html
  3. https://dougsillars.github.io/ARtGallery/aframeHW.html
  4. https://dougsillars.github.io/ARtGallery/aframeHW.html
  5. https://dougsillars.github.io/ARtGallery/aframeHW.html
  6. https://dougsillars.github.io/ARtGallery/aframeHW.html
  7. https://dougsillars.github.io/ARtGallery/aframeroomart.html
  8. https://dougsillars.github.io/ARtGallery/aframeroomart.html
  9. https://dougsillars.github.io/ARtGallery/aframeroomart.html
  10. https://dougsillars.github.io/ARtGallery/aframeroomart.html
  11. https://dougsillars.github.io/ARtGallery/aframeroomart.html
  12. https://dougsillars.github.io/ARtGallery/aframeroomart.html
  13. https://dougsillars.github.io/ARtGallery/aframeroomart.html
  14. https://dougsillars.github.io/ARtGallery/aframeroomart.html
  15. https://dougsillars.github.io/ARtGallery/aframeroomart.html
  16. https://dougsillars.github.io/ARtGallery/aframeroomart.html
  17. https://dougsillars.github.io/ARtGallery/aframeroomart.html