diff --git a/three.js/examples/augmented-website/TODO.md b/three.js/examples/augmented-website/TODO.md index 30e78e04385fa296512f59795293fce956571e6c..9c8a8ae20abf8ddb34691d9a5a983f220cc823da 100644 --- a/three.js/examples/augmented-website/TODO.md +++ b/three.js/examples/augmented-website/TODO.md @@ -1,3 +1,5 @@ +- rename arAppURL as appURL + # Nice Url for augemented-webpages - then support on external site - try to get nice url - include that in webxr.io - little AR logo in bottom right - try clean url @@ -7,20 +9,3 @@ - here goes in iframe with the augmented-webpages examples - and url remains simple - no need to move files - -- later refactor learning in multimarker itself - - this will clean the code for webar-playground and other potential application - -# TODO -- cleanup code in the screenAsPortal examples - - then make that the example for multi marker with a simpler 3d -- put learner in the same .html to avoid reload -- maybe do a threex-armultimarkersimple.js which regroup the usual usage of multi marker - - thus the boilerplate isnt too big when it is repeated all the time -- clean up learner - - remove arToolkitContext - - have caller listen to the event and call areaLearning.onSourceProcessed() -- we learn while we play ? thus the result are getting better and better -- able to play when all marker are markers as learned -- do nice visual on each marker - phase 'scan all the markers' -- once all markers are learned we can start playing diff --git a/three.js/examples/augmented-website/index.html b/three.js/examples/augmented-website/index.html index 8f083400f0b8de2547509a3d44a7df4c991dbb62..5a6b28699475fe6d81bb898b4b1ad66ab37102d1 100644 --- a/three.js/examples/augmented-website/index.html +++ b/three.js/examples/augmented-website/index.html @@ -64,7 +64,7 @@ - arrow keys to tune
- Back + Back to qrcode
Tracking backend: @@ -171,8 +171,8 @@
Made with love by @jerome_etienne. - Create your own AR with WebAR Playground. - Direct link to AR App + Create your own AR with WebAR Playground. + Direct link to the app
diff --git a/three.js/examples/augmented-website/landing-page/js/arAppURL.js b/three.js/examples/augmented-website/landing-page/js/arAppURL.js index 0dfdb768d0cf21c1ea1fd800598013349fb998ba..e0c0cc87055f4aaf6d2cc7168fb40ee9d07ce37e 100644 --- a/three.js/examples/augmented-website/landing-page/js/arAppURL.js +++ b/three.js/examples/augmented-website/landing-page/js/arAppURL.js @@ -54,6 +54,19 @@ function arAppURLUpdatePage(url){ } function updateArAppURL(){ + + ;(function(){ + var urlOptions = { + trackingBackend: 'artoolkit', + markerPageResolution: window.innerWidth + 'x' + window.innerHeight, + firebasePeerID: (typeof(firebasePeerID) !== 'undefined' && firebasePeerID !== null) ? firebasePeerID : undefined, + arAppURL: 'https://jeromeetienne.github.io/webar-playground/' + } + var url = 'app/' + '#' + encodeURIComponent(JSON.stringify(urlOptions)); + document.querySelector('#webARPlaygroundLink').href = url + })() + + ////////////////////////////////////////////////////////////////////////////// // build urlOptions ////////////////////////////////////////////////////////////////////////////// @@ -61,12 +74,13 @@ function updateArAppURL(){ var urlOptions = { trackingBackend: 'artoolkit', markerPageResolution: window.innerWidth + 'x' + window.innerHeight, + firebasePeerID: (typeof(firebasePeerID) !== 'undefined' && firebasePeerID !== null) ? firebasePeerID : undefined, } - if( typeof(firebasePeerID) !== 'undefined' && firebasePeerID !== null ){ - urlOptions.firebasePeerID = firebasePeerID - } - + // if( typeof(firebasePeerID) !== 'undefined' && firebasePeerID !== null ){ + // urlOptions.firebasePeerID = firebasePeerID + // } + // // build arAppURL if( location.search.substring(1) ){ urlOptions.arAppURL = location.search.substring(1)