clone3 commited on
Commit
8b8c7c2
·
verified ·
1 Parent(s): 16c0d04

Upload 11 files

Browse files
Build/Build.data ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc11f0796fc6d39685e99ec4dab5ca3768870b1f4908960f02316545b2d010f8
3
+ size 11245687
Build/Build.framework.js ADDED
The diff for this file is too large to render. See raw diff
 
Build/Build.loader.js ADDED
@@ -0,0 +1 @@
 
 
1
+ function createUnityInstance(t,n,c){function s(e,t){if(!s.aborted&&n.showBanner)return"error"==t&&(s.aborted=!0),n.showBanner(e,t);switch(t){case"error":console.error(e);break;case"warning":console.warn(e);break;default:console.log(e)}}function r(e){var t=e.reason||e.error,n=t?t.toString():e.message||e.reason||"",r=t&&t.stack?t.stack.toString():"";(n+="\n"+(r=r.startsWith(n)?r.substring(n.length):r).trim())&&l.stackTraceRegExp&&l.stackTraceRegExp.test(n)&&D(n,e.filename||t&&(t.fileName||t.sourceURL)||"",e.lineno||t&&(t.lineNumber||t.line)||0)}function e(e,t,n){var r=e[t];void 0!==r&&r||(console.warn('Config option "'+t+'" is missing or empty. Falling back to default value: "'+n+'". Consider updating your WebGL template to include the missing config option.'),e[t]=n)}c=c||function(){};var o,l={canvas:t,webglContextAttributes:{preserveDrawingBuffer:!1,powerPreference:2},cacheControl:function(e){return e==l.dataUrl||e.match(/\.bundle/)?"must-revalidate":"no-store"},streamingAssetsUrl:"StreamingAssets",downloadProgress:{},deinitializers:[],intervals:{},setInterval:function(e,t){e=window.setInterval(e,t);return this.intervals[e]=!0,e},clearInterval:function(e){delete this.intervals[e],window.clearInterval(e)},preRun:[],postRun:[],print:function(e){console.log(e)},printErr:function(e){console.error(e),"string"==typeof e&&-1!=e.indexOf("wasm streaming compile failed")&&(-1!=e.toLowerCase().indexOf("mime")?s('HTTP Response Header "Content-Type" configured incorrectly on the server for file '+l.codeUrl+' , should be "application/wasm". Startup time performance will suffer.',"warning"):s('WebAssembly streaming compilation failed! This can happen for example if "Content-Encoding" HTTP header is incorrectly enabled on the server for file '+l.codeUrl+", but the file is not pre-compressed on disk (or vice versa). Check the Network tab in browser Devtools to debug server header configuration.","warning"))},locateFile:function(e){return"build.wasm"==e?this.codeUrl:e},disabledCanvasEvents:["contextmenu","dragstart"]};for(o in e(n,"companyName","Unity"),e(n,"productName","WebGL Player"),e(n,"productVersion","1.0"),n)l[o]=n[o];l.streamingAssetsUrl=new URL(l.streamingAssetsUrl,document.URL).href;var a=l.disabledCanvasEvents.slice();function i(e){e.preventDefault()}a.forEach(function(e){t.addEventListener(e,i)}),window.addEventListener("error",r),window.addEventListener("unhandledrejection",r);var u="",d="";function h(e){document.webkitCurrentFullScreenElement===t?t.style.width&&(u=t.style.width,d=t.style.height,t.style.width="100%",t.style.height="100%"):u&&(t.style.width=u,t.style.height=d,d=u="")}document.addEventListener("webkitfullscreenchange",h),l.deinitializers.push(function(){for(var e in l.disableAccessToMediaDevices(),a.forEach(function(e){t.removeEventListener(e,i)}),window.removeEventListener("error",r),window.removeEventListener("unhandledrejection",r),document.removeEventListener("webkitfullscreenchange",h),l.intervals)window.clearInterval(e);l.intervals={}}),l.QuitCleanup=function(){for(var e=0;e<l.deinitializers.length;e++)l.deinitializers[e]();l.deinitializers=[],"function"==typeof l.onQuit&&l.onQuit()};var f,p,m,g,b,v,w,y,S,C={Module:l,SetFullscreen:function(){if(l.SetFullscreen)return l.SetFullscreen.apply(l,arguments);l.print("Failed to set Fullscreen mode: Player not loaded yet.")},SendMessage:function(){if(l.SendMessage)return l.SendMessage.apply(l,arguments);l.print("Failed to execute SendMessage: Player not loaded yet.")},Quit:function(){return new Promise(function(e,t){l.shouldQuit=!0,l.onQuit=e})},GetMemoryInfo:function(){var e=l._getMemInfo();return{totalWASMHeapSize:l.HEAPU32[e>>2],usedWASMHeapSize:l.HEAPU32[1+(e>>2)],totalJSHeapSize:l.HEAPF64[1+(e>>3)],usedJSHeapSize:l.HEAPF64[2+(e>>3)]}}};function D(e,t,n){-1==e.indexOf("fullscreen error")&&(l.startupErrorHandler?l.startupErrorHandler(e,t,n):l.errorHandler&&l.errorHandler(e,t,n)||(console.log("Invoking error handler due to\n"+e),"function"==typeof dump&&dump("Invoking error handler due to\n"+e),D.didShowErrorMessage||(-1!=(e="An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:\n"+e).indexOf("DISABLE_EXCEPTION_CATCHING")?e="An exception has occurred, but exception handling has been disabled in this build. If you are the developer of this content, enable exceptions in your project WebGL player settings to be able to catch the exception or see the stack trace.":-1!=e.indexOf("Cannot enlarge memory arrays")?e="Out of memory. If you are the developer of this content, try allocating more memory to your WebGL build in the WebGL player settings.":-1==e.indexOf("Invalid array buffer length")&&-1==e.indexOf("Invalid typed array length")&&-1==e.indexOf("out of memory")&&-1==e.indexOf("could not allocate memory")||(e="The browser could not allocate enough memory for the WebGL content. If you are the developer of this content, try allocating less memory to your WebGL build in the WebGL player settings."),alert(e),D.didShowErrorMessage=!0)))}function P(e,t){if("symbolsUrl"!=e){var n=l.downloadProgress[e],r=(n=n||(l.downloadProgress[e]={started:!1,finished:!1,lengthComputable:!1,total:0,loaded:0}),"object"!=typeof t||"progress"!=t.type&&"load"!=t.type||(n.started||(n.started=!0,n.lengthComputable=t.lengthComputable),n.total=t.total,n.loaded=t.loaded,"load"==t.type&&(n.finished=!0)),0),o=0,a=0,i=0,s=0;for(e in l.downloadProgress){if(!(n=l.downloadProgress[e]).started)return;a++,n.lengthComputable?(r+=n.loaded,o+=n.total,i++):n.finished||s++}c(.9*(a?(a-s-(o?i*(o-r)/o:0))/a:0))}}function x(){var e=this;this.isConnected=this.connect().then(function(){return e.cleanUpCache()}),this.isConnected.catch(function(e){e="Error when initializing cache: "+e,console.log("[UnityCache] "+e)})}function E(e){console.log("[UnityCache] "+e)}function U(e){return U.link=U.link||document.createElement("a"),U.link.href=e,U.link.href}function T(){new Promise(function(a,e){var i=document.createElement("script");i.src=l.frameworkUrl,i.onload=function(){if("undefined"==typeof unityFramework||!unityFramework){var e,t=[["br","br"],["gz","gzip"]];for(e in t){var n,r=t[e];if(l.frameworkUrl.endsWith("."+r[0]))return n="Unable to parse "+l.frameworkUrl+"!","file:"==location.protocol?void s(n+" Loading pre-compressed (brotli or gzip) content via a file:// URL without a web server is not supported by this browser. Please use a local development web server to host compressed Unity content, or use the Unity Build and Run option.","error"):(n+=' This can happen if build compression was enabled but web server hosting the content was misconfigured to not serve the file with HTTP Response Header "Content-Encoding: '+r[1]+'" present. Check browser Console and Devtools Network tab to debug.',"br"==r[0]&&"http:"==location.protocol&&(r=-1!=["localhost","127.0.0.1"].indexOf(location.hostname)?"":"Migrate your server to use HTTPS.",n=/Firefox/.test(navigator.userAgent)?"Unable to parse "+l.frameworkUrl+'!<br>If using custom web server, verify that web server is sending .br files with HTTP Response Header "Content-Encoding: br". Brotli compression may not be supported in Firefox over HTTP connections. '+r+' See <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1670675">https://bugzilla.mozilla.org/show_bug.cgi?id=1670675</a> for more information.':"Unable to parse "+l.frameworkUrl+'!<br>If using custom web server, verify that web server is sending .br files with HTTP Response Header "Content-Encoding: br". Brotli compression may not be supported over HTTP connections. Migrate your server to use HTTPS.'),void s(n,"error"))}s("Unable to parse "+l.frameworkUrl+"! The file is corrupt, or compression was misconfigured? (check Content-Encoding HTTP Response Header on web server)","error")}var o=unityFramework;unityFramework=null,i.onload=null,a(o)},i.onerror=function(e){s("Unable to load file "+l.frameworkUrl+"! Check that the file exists on the remote server. (also check browser Console and Devtools Network tab to debug)","error")},document.body.appendChild(i),l.deinitializers.push(function(){document.body.removeChild(i)})}).then(function(e){e(l)});P(n="dataUrl"),e=l.cacheControl(l[n]),t=l.companyName&&l.productName?l.cachedFetch:l.fetchWithProgress,r=l[n],r=/file:\/\//.exec(r)?"same-origin":void 0;var n,e,t,r,o=t(l[n],{method:"GET",companyName:l.companyName,productName:l.productName,productVersion:l.productVersion,control:e,mode:r,onProgress:function(e){P(n,e)}}).then(function(e){return e.parsedBody}).catch(function(e){var t="Failed to download file "+l[n];"file:"==location.protocol?s(t+". Loading web pages via a file:// URL without a web server is not supported by this browser. Please use a local development web server to host Unity content, or use the Unity Build and Run option.","error"):console.error(t)});l.preRun.push(function(){l.addRunDependency("dataUrl"),o.then(function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=0,r="UnityWebData1.0\0";if(!String.fromCharCode.apply(null,e.subarray(n,n+r.length))==r)throw"unknown data format";var o=t.getUint32(n+=r.length,!0);for(n+=4;n<o;){var a=t.getUint32(n,!0),i=(n+=4,t.getUint32(n,!0)),s=(n+=4,t.getUint32(n,!0)),c=(n+=4,String.fromCharCode.apply(null,e.subarray(n,n+s)));n+=s;for(var u=0,d=c.indexOf("/",u)+1;0<d;u=d,d=c.indexOf("/",u)+1)l.FS_createPath(c.substring(0,u),c.substring(u,d-1),!0,!0);l.FS_createDataFile(c,null,e.subarray(a,a+i),!0,!0,!0)}l.removeRunDependency("dataUrl")})})}return l.SystemInfo=function(){var e,t,n,r,o=navigator.userAgent+" ",a=[["Firefox","Firefox"],["OPR","Opera"],["Edg","Edge"],["SamsungBrowser","Samsung Browser"],["Trident","Internet Explorer"],["MSIE","Internet Explorer"],["Chrome","Chrome"],["CriOS","Chrome on iOS Safari"],["FxiOS","Firefox on iOS Safari"],["Safari","Safari"]];function i(e,t,n){return(e=RegExp(e,"i").exec(t))&&e[n]}for(var s=0;s<a.length;++s)if(t=i(a[s][0]+"[/ ](.*?)[ \\)]",o,1)){e=a[s][1];break}"Safari"==e&&(t=i("Version/(.*?) ",o,1)),"Internet Explorer"==e&&(t=i("rv:(.*?)\\)? ",o,1)||t);for(var c=[["Windows (.*?)[;)]","Windows"],["Android ([0-9_.]+)","Android"],["iPhone OS ([0-9_.]+)","iPhoneOS"],["iPad.*? OS ([0-9_.]+)","iPadOS"],["FreeBSD( )","FreeBSD"],["OpenBSD( )","OpenBSD"],["Linux|X11()","Linux"],["Mac OS X ([0-9_\\.]+)","MacOS"],["bot|google|baidu|bing|msn|teoma|slurp|yandex","Search Bot"]],u=0;u<c.length;++u)if(d=i(c[u][0],o,1)){n=c[u][1],d=d.replace(/_/g,".");break}var d={"NT 5.0":"2000","NT 5.1":"XP","NT 5.2":"Server 2003","NT 6.0":"Vista","NT 6.1":"7","NT 6.2":"8","NT 6.3":"8.1","NT 10.0":"10"}[d]||d,l=((l=document.createElement("canvas"))&&(gl=l.getContext("webgl2"),glVersion=gl?2:0,gl||(gl=l&&l.getContext("webgl"))&&(glVersion=1),gl&&(r=gl.getExtension("WEBGL_debug_renderer_info")&&gl.getParameter(37446)||gl.getParameter(7937))),"undefined"!=typeof SharedArrayBuffer),h="object"==typeof WebAssembly&&"function"==typeof WebAssembly.compile;return{width:screen.width,height:screen.height,userAgent:o.trim(),browser:e||"Unknown browser",browserVersion:t||"Unknown version",mobile:/Mobile|Android|iP(ad|hone)/.test(navigator.appVersion),os:n||"Unknown OS",osVersion:d||"Unknown OS Version",gpu:r||"Unknown GPU",language:navigator.userLanguage||navigator.language,hasWebGL:glVersion,hasCursorLock:!!document.body.requestPointerLock,hasFullscreen:!!document.body.requestFullscreen||!!document.body.webkitRequestFullscreen,hasThreads:l,hasWasm:h,hasWasmThreads:!1}}(),l.abortHandler=function(e){return D(e,"",0),!0},Error.stackTraceLimit=Math.max(Error.stackTraceLimit||0,50),l.readBodyWithProgress=function(a,i,s){var e=a.body?a.body.getReader():void 0,c=void 0!==a.headers.get("Content-Length"),u=function(e,t){if(!t)return 0;var t=e.headers.get("Content-Encoding"),n=parseInt(e.headers.get("Content-Length"));switch(t){case"br":return Math.round(5*n);case"gzip":return Math.round(4*n);default:return n}}(a,c),d=new Uint8Array(u),l=[],h=0,f=0;return c||console.warn("[UnityCache] Response is served without Content-Length header. Please reconfigure server to include valid Content-Length for better download performance."),function o(){return void 0===e?a.arrayBuffer().then(function(e){var t=new Uint8Array(e);return i({type:"progress",response:a,total:e.length,loaded:0,lengthComputable:c,chunk:s?t:null}),t}):e.read().then(function(e){if(e.done){if(h===u)return d;if(h<u)return d.slice(0,h);for(var t=new Uint8Array(h),n=(t.set(d,0),f),r=0;r<l.length;++r)t.set(l[r],n),n+=l[r].length;return t}return h+e.value.length<=d.length?(d.set(e.value,h),f=h+e.value.length):l.push(e.value),h+=e.value.length,i({type:"progress",response:a,total:Math.max(u,h),loaded:h,lengthComputable:c,chunk:s?e.value:null}),o()})}().then(function(e){return i({type:"load",response:a,total:e.length,loaded:e.length,lengthComputable:c,chunk:null}),a.parsedBody=e,a})},l.fetchWithProgress=function(e,t){var n=function(){};return t&&t.onProgress&&(n=t.onProgress),fetch(e,t).then(function(e){return l.readBodyWithProgress(e,n,t.enableStreamingDownload)})},l.UnityCache=(f={name:"UnityCache",version:4},p={name:"RequestMetaDataStore",version:1},m="RequestStore",g="WebAssembly",b=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,v=null,x.getInstance=function(){return v=v||new x},x.destroyInstance=function(){return v?v.close().then(function(){v=null}):Promise.resolve()},x.prototype.clearCache=function(){var r=this;return this.isConnected.then(function(){return r.execute(p.name,"clear",[])}).then(function(){return r.cache.keys()}).then(function e(t){var n;return 0===t.length?Promise.resolve():(n=t.pop(),r.cache.delete(n).then(function(){return e(t)}))})},x.UnityCacheDatabase=f,x.RequestMetaDataStore=p,x.MaximumCacheSize=1073741824,x.prototype.loadRequest=function(e){var t=this;return t.isConnected.then(function(){return Promise.all([t.cache.match(e),t.loadRequestMetaData(e)])}).then(function(e){if(void 0!==e[0]&&void 0!==e[1])return{response:e[0],metaData:e[1]}})},x.prototype.loadRequestMetaData=function(e){e="string"==typeof e?e:e.url;return this.execute(p.name,"get",[e])},x.prototype.updateRequestMetaData=function(e){return this.execute(p.name,"put",[e])},x.prototype.storeRequest=function(e,t){var n=this;return n.isConnected.then(function(){return n.cache.put(e,t)})},x.prototype.close=function(){return this.isConnected.then(function(){this.database&&(this.database.close(),this.database=null),this.cache&&(this.cache=null)}.bind(this))},x.prototype.connect=function(){var o=this;return void 0===b?Promise.reject(new Error("Could not connect to cache: IndexedDB is not supported.")):void 0===window.caches?Promise.reject(new Error("Could not connect to cache: Cache API is not supported.")):new Promise(function(t,n){try{function r(){o.openDBTimeout&&(clearTimeout(o.openDBTimeout),o.openDBTimeout=null)}o.openDBTimeout=setTimeout(function(){void 0===o.database&&n(new Error("Could not connect to cache: Database timeout."))},2e4);var e=b.open(f.name,f.version);e.onupgradeneeded=o.upgradeDatabase.bind(o),e.onsuccess=function(e){r(),o.database=e.target.result,t()},e.onerror=function(e){r(),o.database=null,n(new Error("Could not connect to database."))}}catch(e){r(),o.database=null,o.cache=null,n(new Error("Could not connect to cache: Could not connect to database."))}}).then(function(){var e=f.name+"_"+l.companyName+"_"+l.productName;return caches.open(e)}).then(function(e){o.cache=e})},x.prototype.upgradeDatabase=function(e){var t,e=e.target.result;e.objectStoreNames.contains(p.name)||(t=e.createObjectStore(p.name,{keyPath:"url"}),["accessedAt","updatedAt"].forEach(function(e){t.createIndex(e,e)})),e.objectStoreNames.contains(m)&&e.deleteObjectStore(m),e.objectStoreNames.contains(g)&&e.deleteObjectStore(g)},x.prototype.execute=function(a,i,s){return this.isConnected.then(function(){return new Promise(function(t,n){try{var e,r,o;null===this.database?n(new Error("indexedDB access denied")):(e=-1!=["put","delete","clear"].indexOf(i)?"readwrite":"readonly",r=this.database.transaction([a],e).objectStore(a),"openKeyCursor"==i&&(r=r.index(s[0]),s=s.slice(1)),(o=r[i].apply(r,s)).onsuccess=function(e){t(e.target.result)},o.onerror=function(e){n(e)})}catch(e){n(e)}}.bind(this))}.bind(this))},x.prototype.getMetaDataEntries=function(){var r=this,o=0,a=[];return new Promise(function(t,n){var e=r.database.transaction([p.name],"readonly").objectStore(p.name).openCursor();e.onsuccess=function(e){e=e.target.result;e?(o+=e.value.size,a.push(e.value),e.continue()):t({metaDataEntries:a,cacheSize:o})},e.onerror=function(e){n(e)}})},x.prototype.cleanUpCache=function(){var i=this;return this.getMetaDataEntries().then(function(e){for(var t=e.metaDataEntries,n=e.cacheSize,r=[],o=[],a=0;a<t.length;++a)t[a].version==l.productVersion?o.push(t[a]):(r.push(t[a]),n-=t[a].size);o.sort(function(e,t){return e.accessedAt-t.accessedAt});for(a=0;a<o.length&&!(n<x.MaximumCacheSize);++a)r.push(o[a]),n-=o[a].size;return function e(){var t;return 0===r.length?Promise.resolve():(t=r.pop(),i.cache.delete(t.url).then(function(e){if(e)return r=t.url,new Promise(function(e,t){var n=i.database.transaction([p.name],"readwrite");n.objectStore(p.name).delete(r),n.oncomplete=e,n.onerror=t});var r}).then(e))}()})},x),l.cachedFetch=(w=l.UnityCache,y=l.fetchWithProgress,S=l.readBodyWithProgress,function(o,a){var e,t,i=w.getInstance(),s=U("string"==typeof o?o:o.url),c={enabled:(e=s,(!(t=a)||!t.method||"GET"===t.method)&&((!t||-1!=["must-revalidate","immutable"].indexOf(t.control))&&!!e.match("^https?://")))};function u(n,r){return fetch(n,r).then(function(e){var t;return!c.enabled||c.revalidated?e:304===e.status?(c.revalidated=!0,i.updateRequestMetaData(c.metaData).then(function(){E("'"+c.metaData.url+"' successfully revalidated and served from the indexedDB cache")}).catch(function(e){E("'"+c.metaData.url+"' successfully revalidated but not stored in the indexedDB cache due to the error: "+e)}),S(c.response,r.onProgress,r.enableStreamingDownload)):200==e.status?(c.response=e,c.metaData.updatedAt=c.metaData.accessedAt,c.revalidated=!0,t=e.clone(),S(e,r.onProgress,r.enableStreamingDownload).then(function(e){return c.metaData.size=e.parsedBody.length,Promise.all([i.storeRequest(n,t),i.updateRequestMetaData(c.metaData)]).then(function(){E("'"+s+"' successfully downloaded and stored in the indexedDB cache")}).catch(function(e){E("'"+s+"' successfully downloaded but not stored in the indexedDB cache due to the error: "+e)}),e})):(E("'"+s+"' request failed with status: "+e.status+" "+e.statusText),S(e,r.onProgress,r.enableStreamingDownload))})}return a&&(c.control=a.control,c.companyName=a.companyName,c.productName=a.productName,c.productVersion=a.productVersion),c.revalidated=!1,c.metaData={url:s,accessedAt:Date.now(),version:c.productVersion},c.response=null,c.enabled?i.loadRequest(s).then(function(e){var n,r,t;return e?(n=e.response,r=e.metaData,c.response=n,c.metaData.size=r.size,c.metaData.updatedAt=r.updatedAt,"immutable"==c.control?(c.revalidated=!0,i.updateRequestMetaData(r).then(function(){E("'"+c.metaData.url+"' served from the indexedDB cache without revalidation")}),S(n,a.onProgress,a.enableStreamingDownload)):(e=s,(t=window.location.href.match(/^[a-z]+:\/\/[^\/]+/))&&!e.lastIndexOf(t[0],0)||!n.headers.get("Last-Modified")&&!n.headers.get("ETag")?(e=(a=a||{}).headers||{},a.headers=e,n.headers.get("Last-Modified")?(e["If-Modified-Since"]=n.headers.get("Last-Modified"),e["Cache-Control"]="no-cache"):n.headers.get("ETag")&&(e["If-None-Match"]=n.headers.get("ETag"),e["Cache-Control"]="no-cache"),u(o,a)):fetch(s,{method:"HEAD"}).then(function(t){return c.revalidated=["Last-Modified","ETag"].every(function(e){return!n.headers.get(e)||n.headers.get(e)==t.headers.get(e)}),c.revalidated?(i.updateRequestMetaData(r).then(function(){E("'"+c.metaData.url+"' successfully revalidated and served from the indexedDB cache")}),S(c.response,a.onProgress,a.enableStreamingDownload)):u(o,a)}))):u(o,a)}).catch(function(e){return E("Failed to load '"+c.metaData.url+"' from indexedDB cache due to the error: "+e),y(o,a)}):y(o,a)}),new Promise(function(e,t){var n;l.SystemInfo.hasWebGL?1==l.SystemInfo.hasWebGL?(n='Your browser does not support graphics API "WebGL 2" which is required for this content.',"Safari"==l.SystemInfo.browser&&parseInt(l.SystemInfo.browserVersion)<15&&(l.SystemInfo.mobile||1<navigator.maxTouchPoints?n+="\nUpgrade to iOS 15 or later.":n+="\nUpgrade to Safari 15 or later."),t(n)):l.SystemInfo.hasWasm?(l.startupErrorHandler=t,c(0),l.postRun.push(function(){c(1),delete l.startupErrorHandler,e(C)}),T()):t("Your browser does not support WebAssembly."):t("Your browser does not support WebGL.")})}
Build/Build.wasm ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6468df226c03b18a94ceebfccc657726a1ed067db5396656d822527068360109
3
+ size 20979212
data/camera/camera_para.dat ADDED
Binary file (176 Bytes). View file
 
data/markers/patt.hiro ADDED
@@ -0,0 +1,195 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 234 235 240 233 240 234 240 235 240 237 240 238 240 240 240 232
2
+ 229 240 240 240 240 240 240 240 240 240 240 240 240 240 240 228
3
+ 227 240 240 240 240 240 240 240 240 240 240 240 240 240 240 239
4
+ 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
5
+ 236 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
6
+ 234 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
7
+ 236 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
8
+ 231 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
9
+ 229 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
10
+ 225 149 240 240 186 216 225 174 240 240 240 237 238 240 240 240
11
+ 150 107 238 231 75 208 115 147 238 228 223 226 237 180 226 240
12
+ 150 62 181 213 62 187 113 169 197 72 29 237 120 50 53 207
13
+ 149 63 47 78 53 184 113 101 142 5 150 150 45 217 186 83
14
+ 121 84 220 222 58 180 121 92 128 109 237 124 155 232 161 64
15
+ 149 71 240 240 76 210 98 109 122 108 240 129 51 119 161 155
16
+ 149 186 240 240 98 219 135 152 207 191 236 227 152 77 175 209
17
+ 235 235 240 233 240 234 240 235 240 236 240 238 240 240 240 240
18
+ 229 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
19
+ 227 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
20
+ 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
21
+ 236 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
22
+ 234 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
23
+ 236 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
24
+ 232 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
25
+ 229 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
26
+ 225 156 240 240 186 216 225 186 240 240 240 240 240 240 240 240
27
+ 150 117 240 231 72 206 115 162 240 232 223 237 240 180 226 240
28
+ 150 74 187 213 51 184 103 168 197 78 29 237 120 50 53 216
29
+ 144 77 51 74 61 184 106 101 142 5 150 152 52 217 186 85
30
+ 117 89 219 219 65 184 121 92 128 100 236 125 156 240 170 73
31
+ 148 71 240 240 76 210 109 109 121 99 240 137 51 120 166 164
32
+ 140 186 240 240 98 220 150 156 207 192 236 230 152 77 176 212
33
+ 234 235 240 233 240 234 240 235 240 236 240 238 240 240 240 233
34
+ 229 240 240 240 240 240 240 240 240 240 240 240 240 240 240 239
35
+ 227 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
36
+ 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
37
+ 234 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
38
+ 232 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
39
+ 235 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
40
+ 232 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
41
+ 228 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
42
+ 225 156 240 240 182 212 225 180 240 240 240 240 240 240 240 240
43
+ 150 116 238 228 66 205 115 151 238 236 225 240 240 180 226 240
44
+ 156 84 186 211 47 184 109 170 200 92 30 240 120 50 53 216
45
+ 147 83 51 73 50 184 106 110 148 17 151 150 45 217 186 85
46
+ 127 98 219 219 58 179 109 101 128 107 237 125 155 240 163 72
47
+ 155 86 240 240 76 201 85 108 121 95 232 137 51 118 153 155
48
+ 149 189 240 240 98 220 141 154 206 178 235 230 152 77 175 209
49
+
50
+ 232 228 239 240 240 240 240 240 240 240 240 207 83 64 155 209
51
+ 240 240 240 240 240 240 240 240 240 240 226 53 186 161 161 175
52
+ 240 240 240 240 240 240 240 240 240 240 180 50 217 232 119 77
53
+ 240 240 240 240 240 240 240 240 240 238 237 120 45 155 51 152
54
+ 238 240 240 240 240 240 240 240 240 237 226 237 150 124 129 227
55
+ 240 240 240 240 240 240 240 240 240 240 223 29 150 237 240 236
56
+ 237 240 240 240 240 240 240 240 240 240 228 72 5 109 108 191
57
+ 240 240 240 240 240 240 240 240 240 240 238 197 142 128 122 207
58
+ 235 240 240 240 240 240 240 240 240 174 147 169 101 92 109 152
59
+ 240 240 240 240 240 240 240 240 240 225 115 113 113 121 98 135
60
+ 234 240 240 240 240 240 240 240 240 216 208 187 184 180 210 219
61
+ 240 240 240 240 240 240 240 240 240 186 75 62 53 58 76 98
62
+ 233 240 240 240 240 240 240 240 240 240 231 213 78 222 240 240
63
+ 240 240 240 240 240 240 240 240 240 240 238 181 47 220 240 240
64
+ 235 240 240 240 240 240 240 240 240 149 107 62 63 84 71 186
65
+ 234 229 227 240 236 234 236 231 229 225 150 150 149 121 149 149
66
+ 240 240 240 240 240 240 240 240 240 240 240 216 85 73 164 212
67
+ 240 240 240 240 240 240 240 240 240 240 226 53 186 170 166 176
68
+ 240 240 240 240 240 240 240 240 240 240 180 50 217 240 120 77
69
+ 240 240 240 240 240 240 240 240 240 240 240 120 52 156 51 152
70
+ 238 240 240 240 240 240 240 240 240 240 237 237 152 125 137 230
71
+ 240 240 240 240 240 240 240 240 240 240 223 29 150 236 240 236
72
+ 236 240 240 240 240 240 240 240 240 240 232 78 5 100 99 192
73
+ 240 240 240 240 240 240 240 240 240 240 240 197 142 128 121 207
74
+ 235 240 240 240 240 240 240 240 240 186 162 168 101 92 109 156
75
+ 240 240 240 240 240 240 240 240 240 225 115 103 106 121 109 150
76
+ 234 240 240 240 240 240 240 240 240 216 206 184 184 184 210 220
77
+ 240 240 240 240 240 240 240 240 240 186 72 51 61 65 76 98
78
+ 233 240 240 240 240 240 240 240 240 240 231 213 74 219 240 240
79
+ 240 240 240 240 240 240 240 240 240 240 240 187 51 219 240 240
80
+ 235 240 240 240 240 240 240 240 240 156 117 74 77 89 71 186
81
+ 235 229 227 240 236 234 236 232 229 225 150 150 144 117 148 140
82
+ 233 239 240 240 240 240 240 240 240 240 240 216 85 72 155 209
83
+ 240 240 240 240 240 240 240 240 240 240 226 53 186 163 153 175
84
+ 240 240 240 240 240 240 240 240 240 240 180 50 217 240 118 77
85
+ 240 240 240 240 240 240 240 240 240 240 240 120 45 155 51 152
86
+ 238 240 240 240 240 240 240 240 240 240 240 240 150 125 137 230
87
+ 240 240 240 240 240 240 240 240 240 240 225 30 151 237 232 235
88
+ 236 240 240 240 240 240 240 240 240 240 236 92 17 107 95 178
89
+ 240 240 240 240 240 240 240 240 240 240 238 200 148 128 121 206
90
+ 235 240 240 240 240 240 240 240 240 180 151 170 110 101 108 154
91
+ 240 240 240 240 240 240 240 240 240 225 115 109 106 109 85 141
92
+ 234 240 240 240 240 240 240 240 240 212 205 184 184 179 201 220
93
+ 240 240 240 240 240 240 240 240 240 182 66 47 50 58 76 98
94
+ 233 240 240 240 240 240 240 240 240 240 228 211 73 219 240 240
95
+ 240 240 240 240 240 240 240 240 240 240 238 186 51 219 240 240
96
+ 235 240 240 240 240 240 240 240 240 156 116 84 83 98 86 189
97
+ 234 229 227 240 234 232 235 232 228 225 150 156 147 127 155 149
98
+
99
+ 209 175 77 152 227 236 191 207 152 135 219 98 240 240 186 149
100
+ 155 161 119 51 129 240 108 122 109 98 210 76 240 240 71 149
101
+ 64 161 232 155 124 237 109 128 92 121 180 58 222 220 84 121
102
+ 83 186 217 45 150 150 5 142 101 113 184 53 78 47 63 149
103
+ 207 53 50 120 237 29 72 197 169 113 187 62 213 181 62 150
104
+ 240 226 180 237 226 223 228 238 147 115 208 75 231 238 107 150
105
+ 240 240 240 238 237 240 240 240 174 225 216 186 240 240 149 225
106
+ 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 229
107
+ 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 231
108
+ 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 236
109
+ 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 234
110
+ 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 236
111
+ 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
112
+ 239 240 240 240 240 240 240 240 240 240 240 240 240 240 240 227
113
+ 228 240 240 240 240 240 240 240 240 240 240 240 240 240 240 229
114
+ 232 240 240 240 238 240 237 240 235 240 234 240 233 240 235 234
115
+ 212 176 77 152 230 236 192 207 156 150 220 98 240 240 186 140
116
+ 164 166 120 51 137 240 99 121 109 109 210 76 240 240 71 148
117
+ 73 170 240 156 125 236 100 128 92 121 184 65 219 219 89 117
118
+ 85 186 217 52 152 150 5 142 101 106 184 61 74 51 77 144
119
+ 216 53 50 120 237 29 78 197 168 103 184 51 213 187 74 150
120
+ 240 226 180 240 237 223 232 240 162 115 206 72 231 240 117 150
121
+ 240 240 240 240 240 240 240 240 186 225 216 186 240 240 156 225
122
+ 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 229
123
+ 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 232
124
+ 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 236
125
+ 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 234
126
+ 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 236
127
+ 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
128
+ 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 227
129
+ 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 229
130
+ 240 240 240 240 238 240 236 240 235 240 234 240 233 240 235 235
131
+ 209 175 77 152 230 235 178 206 154 141 220 98 240 240 189 149
132
+ 155 153 118 51 137 232 95 121 108 85 201 76 240 240 86 155
133
+ 72 163 240 155 125 237 107 128 101 109 179 58 219 219 98 127
134
+ 85 186 217 45 150 151 17 148 110 106 184 50 73 51 83 147
135
+ 216 53 50 120 240 30 92 200 170 109 184 47 211 186 84 156
136
+ 240 226 180 240 240 225 236 238 151 115 205 66 228 238 116 150
137
+ 240 240 240 240 240 240 240 240 180 225 212 182 240 240 156 225
138
+ 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 228
139
+ 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 232
140
+ 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 235
141
+ 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 232
142
+ 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 234
143
+ 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240
144
+ 240 240 240 240 240 240 240 240 240 240 240 240 240 240 240 227
145
+ 239 240 240 240 240 240 240 240 240 240 240 240 240 240 240 229
146
+ 233 240 240 240 238 240 236 240 235 240 234 240 233 240 235 234
147
+
148
+ 149 149 121 149 150 150 225 229 231 236 234 236 240 227 229 234
149
+ 186 71 84 63 62 107 149 240 240 240 240 240 240 240 240 235
150
+ 240 240 220 47 181 238 240 240 240 240 240 240 240 240 240 240
151
+ 240 240 222 78 213 231 240 240 240 240 240 240 240 240 240 233
152
+ 98 76 58 53 62 75 186 240 240 240 240 240 240 240 240 240
153
+ 219 210 180 184 187 208 216 240 240 240 240 240 240 240 240 234
154
+ 135 98 121 113 113 115 225 240 240 240 240 240 240 240 240 240
155
+ 152 109 92 101 169 147 174 240 240 240 240 240 240 240 240 235
156
+ 207 122 128 142 197 238 240 240 240 240 240 240 240 240 240 240
157
+ 191 108 109 5 72 228 240 240 240 240 240 240 240 240 240 237
158
+ 236 240 237 150 29 223 240 240 240 240 240 240 240 240 240 240
159
+ 227 129 124 150 237 226 237 240 240 240 240 240 240 240 240 238
160
+ 152 51 155 45 120 237 238 240 240 240 240 240 240 240 240 240
161
+ 77 119 232 217 50 180 240 240 240 240 240 240 240 240 240 240
162
+ 175 161 161 186 53 226 240 240 240 240 240 240 240 240 240 240
163
+ 209 155 64 83 207 240 240 240 240 240 240 240 240 239 228 232
164
+ 140 148 117 144 150 150 225 229 232 236 234 236 240 227 229 235
165
+ 186 71 89 77 74 117 156 240 240 240 240 240 240 240 240 235
166
+ 240 240 219 51 187 240 240 240 240 240 240 240 240 240 240 240
167
+ 240 240 219 74 213 231 240 240 240 240 240 240 240 240 240 233
168
+ 98 76 65 61 51 72 186 240 240 240 240 240 240 240 240 240
169
+ 220 210 184 184 184 206 216 240 240 240 240 240 240 240 240 234
170
+ 150 109 121 106 103 115 225 240 240 240 240 240 240 240 240 240
171
+ 156 109 92 101 168 162 186 240 240 240 240 240 240 240 240 235
172
+ 207 121 128 142 197 240 240 240 240 240 240 240 240 240 240 240
173
+ 192 99 100 5 78 232 240 240 240 240 240 240 240 240 240 236
174
+ 236 240 236 150 29 223 240 240 240 240 240 240 240 240 240 240
175
+ 230 137 125 152 237 237 240 240 240 240 240 240 240 240 240 238
176
+ 152 51 156 52 120 240 240 240 240 240 240 240 240 240 240 240
177
+ 77 120 240 217 50 180 240 240 240 240 240 240 240 240 240 240
178
+ 176 166 170 186 53 226 240 240 240 240 240 240 240 240 240 240
179
+ 212 164 73 85 216 240 240 240 240 240 240 240 240 240 240 240
180
+ 149 155 127 147 156 150 225 228 232 235 232 234 240 227 229 234
181
+ 189 86 98 83 84 116 156 240 240 240 240 240 240 240 240 235
182
+ 240 240 219 51 186 238 240 240 240 240 240 240 240 240 240 240
183
+ 240 240 219 73 211 228 240 240 240 240 240 240 240 240 240 233
184
+ 98 76 58 50 47 66 182 240 240 240 240 240 240 240 240 240
185
+ 220 201 179 184 184 205 212 240 240 240 240 240 240 240 240 234
186
+ 141 85 109 106 109 115 225 240 240 240 240 240 240 240 240 240
187
+ 154 108 101 110 170 151 180 240 240 240 240 240 240 240 240 235
188
+ 206 121 128 148 200 238 240 240 240 240 240 240 240 240 240 240
189
+ 178 95 107 17 92 236 240 240 240 240 240 240 240 240 240 236
190
+ 235 232 237 151 30 225 240 240 240 240 240 240 240 240 240 240
191
+ 230 137 125 150 240 240 240 240 240 240 240 240 240 240 240 238
192
+ 152 51 155 45 120 240 240 240 240 240 240 240 240 240 240 240
193
+ 77 118 240 217 50 180 240 240 240 240 240 240 240 240 240 240
194
+ 175 153 163 186 53 226 240 240 240 240 240 240 240 240 240 240
195
+ 209 155 72 85 216 240 240 240 240 240 240 240 240 240 239 233
data/markers/test.patt ADDED
@@ -0,0 +1,195 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
2
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
3
+ 255 255 0 0 0 0 0 0 0 0 0 0 0 0 255 255
4
+ 255 255 0 0 0 0 0 0 0 0 0 0 0 0 255 255
5
+ 255 255 0 0 0 0 0 0 0 0 0 0 0 0 255 255
6
+ 255 255 0 0 0 223 223 223 223 223 223 0 0 0 255 255
7
+ 255 255 0 0 0 223 223 223 223 223 223 0 0 0 255 255
8
+ 255 255 0 0 0 223 223 223 223 223 223 0 0 0 255 255
9
+ 255 255 0 0 0 223 223 223 223 223 223 0 0 0 255 255
10
+ 255 255 0 0 0 92 223 223 92 223 223 0 0 0 255 255
11
+ 255 255 0 0 0 223 92 223 92 224 224 0 0 0 255 255
12
+ 255 255 0 0 0 0 0 0 0 0 0 0 0 0 255 255
13
+ 255 255 0 0 0 0 0 0 0 0 0 0 0 0 255 255
14
+ 255 255 0 0 0 0 0 0 0 0 0 0 0 0 255 255
15
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
16
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
17
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
18
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
19
+ 255 255 0 0 0 0 0 0 0 0 0 0 0 0 255 255
20
+ 255 255 0 0 0 0 0 0 0 0 0 0 0 0 255 255
21
+ 255 255 0 0 0 0 0 0 0 0 0 0 0 0 255 255
22
+ 255 255 0 0 0 223 223 223 223 223 223 0 0 0 255 255
23
+ 255 255 0 0 0 223 223 223 223 223 223 0 0 0 255 255
24
+ 255 255 0 0 0 223 223 223 223 223 223 0 0 0 255 255
25
+ 255 255 0 0 0 223 223 223 223 223 223 0 0 0 255 255
26
+ 255 255 0 0 0 92 223 223 92 222 223 0 0 0 255 255
27
+ 255 255 0 0 0 223 92 223 92 195 190 0 0 0 255 255
28
+ 255 255 0 0 0 0 0 0 0 0 0 0 0 0 255 255
29
+ 255 255 0 0 0 0 0 0 0 0 0 0 0 0 255 255
30
+ 255 255 0 0 0 0 0 0 0 0 0 0 0 0 255 255
31
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
32
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
33
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
34
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
35
+ 255 255 0 0 0 0 0 0 0 0 0 0 0 0 255 255
36
+ 255 255 0 0 0 0 0 0 0 0 0 0 0 0 255 255
37
+ 255 255 0 0 0 0 0 0 0 0 0 0 0 0 255 255
38
+ 255 255 0 0 0 223 223 223 223 223 223 0 0 0 255 255
39
+ 255 255 0 0 0 223 223 223 223 223 223 0 0 0 255 255
40
+ 255 255 0 0 0 223 223 223 223 223 223 0 0 0 255 255
41
+ 255 255 0 0 0 223 223 223 223 223 223 0 0 0 255 255
42
+ 255 255 0 0 0 92 223 223 92 221 223 0 0 0 255 255
43
+ 255 255 0 0 0 223 92 223 92 151 139 0 0 0 255 255
44
+ 255 255 0 0 0 0 0 0 0 0 0 0 0 0 255 255
45
+ 255 255 0 0 0 0 0 0 0 0 0 0 0 0 255 255
46
+ 255 255 0 0 0 0 0 0 0 0 0 0 0 0 255 255
47
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
48
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
49
+
50
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
51
+ 255 215 154 154 154 154 154 154 154 154 154 154 154 154 215 255
52
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
53
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
54
+ 255 154 0 0 9 44 44 44 44 44 44 9 0 0 154 255
55
+ 255 154 0 0 44 223 223 223 223 223 223 44 0 0 154 255
56
+ 255 154 0 0 44 223 223 223 223 223 223 44 0 0 154 255
57
+ 255 154 0 0 44 223 223 223 209 170 181 44 0 0 154 255
58
+ 255 154 0 0 44 223 223 223 189 137 185 44 0 0 154 255
59
+ 255 154 0 0 44 223 223 223 219 178 179 44 0 0 154 255
60
+ 255 154 0 0 44 223 223 223 208 158 173 44 0 0 154 255
61
+ 255 154 0 0 9 44 44 44 44 44 41 9 0 0 154 255
62
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
63
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
64
+ 255 215 154 154 154 154 154 154 154 154 154 154 154 154 215 255
65
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
66
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
67
+ 255 215 154 154 154 154 154 154 154 154 154 154 154 154 215 255
68
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
69
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
70
+ 255 154 0 0 9 44 44 44 44 44 44 9 0 0 154 255
71
+ 255 154 0 0 44 223 223 223 223 204 187 44 0 0 154 255
72
+ 255 154 0 0 44 223 223 223 223 208 192 40 0 0 154 255
73
+ 255 154 0 0 44 223 223 223 209 170 180 44 0 0 154 255
74
+ 255 154 0 0 44 223 223 223 189 137 185 44 0 0 154 255
75
+ 255 154 0 0 44 223 223 223 219 178 179 44 0 0 154 255
76
+ 255 154 0 0 44 223 223 223 208 158 173 44 0 0 154 255
77
+ 255 154 0 0 9 44 44 44 44 44 41 9 0 0 154 255
78
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
79
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
80
+ 255 215 154 154 154 154 154 154 154 154 154 154 154 154 215 255
81
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
82
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
83
+ 255 215 154 154 154 154 154 154 154 154 154 154 154 154 215 255
84
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
85
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
86
+ 255 154 0 0 9 44 44 44 44 44 44 9 0 0 154 255
87
+ 255 154 0 0 44 223 223 223 223 177 135 44 0 0 154 255
88
+ 255 154 0 0 44 223 223 223 223 187 150 35 0 0 154 255
89
+ 255 154 0 0 44 223 223 223 209 170 178 44 0 0 154 255
90
+ 255 154 0 0 44 223 223 223 189 137 185 44 0 0 154 255
91
+ 255 154 0 0 44 223 223 223 219 178 179 44 0 0 154 255
92
+ 255 154 0 0 44 223 223 223 208 158 173 44 0 0 154 255
93
+ 255 154 0 0 9 44 44 44 44 44 41 9 0 0 154 255
94
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
95
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
96
+ 255 215 154 154 154 154 154 154 154 154 154 154 154 154 215 255
97
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
98
+
99
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
100
+ 255 215 154 154 154 154 154 154 154 154 154 154 154 154 215 255
101
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
102
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
103
+ 255 154 0 0 9 44 44 44 44 44 44 9 0 0 154 255
104
+ 255 154 0 0 44 223 223 181 185 179 173 41 0 0 154 255
105
+ 255 154 0 0 44 223 223 170 137 178 158 44 0 0 154 255
106
+ 255 154 0 0 44 223 223 209 189 219 208 44 0 0 154 255
107
+ 255 154 0 0 44 223 223 223 223 223 223 44 0 0 154 255
108
+ 255 154 0 0 44 223 223 223 223 223 223 44 0 0 154 255
109
+ 255 154 0 0 44 223 223 223 223 223 223 44 0 0 154 255
110
+ 255 154 0 0 9 44 44 44 44 44 44 9 0 0 154 255
111
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
112
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
113
+ 255 215 154 154 154 154 154 154 154 154 154 154 154 154 215 255
114
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
115
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
116
+ 255 215 154 154 154 154 154 154 154 154 154 154 154 154 215 255
117
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
118
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
119
+ 255 154 0 0 9 44 40 44 44 44 44 9 0 0 154 255
120
+ 255 154 0 0 44 187 192 180 185 179 173 41 0 0 154 255
121
+ 255 154 0 0 44 204 208 170 137 178 158 44 0 0 154 255
122
+ 255 154 0 0 44 223 223 209 189 219 208 44 0 0 154 255
123
+ 255 154 0 0 44 223 223 223 223 223 223 44 0 0 154 255
124
+ 255 154 0 0 44 223 223 223 223 223 223 44 0 0 154 255
125
+ 255 154 0 0 44 223 223 223 223 223 223 44 0 0 154 255
126
+ 255 154 0 0 9 44 44 44 44 44 44 9 0 0 154 255
127
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
128
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
129
+ 255 215 154 154 154 154 154 154 154 154 154 154 154 154 215 255
130
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
131
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
132
+ 255 215 154 154 154 154 154 154 154 154 154 154 154 154 215 255
133
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
134
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
135
+ 255 154 0 0 9 44 35 44 44 44 44 9 0 0 154 255
136
+ 255 154 0 0 44 135 150 178 185 179 173 41 0 0 154 255
137
+ 255 154 0 0 44 177 187 170 137 178 158 44 0 0 154 255
138
+ 255 154 0 0 44 223 223 209 189 219 208 44 0 0 154 255
139
+ 255 154 0 0 44 223 223 223 223 223 223 44 0 0 154 255
140
+ 255 154 0 0 44 223 223 223 223 223 223 44 0 0 154 255
141
+ 255 154 0 0 44 223 223 223 223 223 223 44 0 0 154 255
142
+ 255 154 0 0 9 44 44 44 44 44 44 9 0 0 154 255
143
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
144
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
145
+ 255 215 154 154 154 154 154 154 154 154 154 154 154 154 215 255
146
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
147
+
148
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
149
+ 255 215 154 154 154 154 154 154 154 154 154 154 154 154 215 255
150
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
151
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
152
+ 255 154 0 0 9 41 44 44 44 44 44 9 0 0 154 255
153
+ 255 154 0 0 44 173 158 208 223 223 223 44 0 0 154 255
154
+ 255 154 0 0 44 179 178 219 223 223 223 44 0 0 154 255
155
+ 255 154 0 0 44 185 137 189 223 223 223 44 0 0 154 255
156
+ 255 154 0 0 44 181 170 209 223 223 223 44 0 0 154 255
157
+ 255 154 0 0 44 223 223 223 223 223 223 44 0 0 154 255
158
+ 255 154 0 0 44 223 223 223 223 223 223 44 0 0 154 255
159
+ 255 154 0 0 9 44 44 44 44 44 44 9 0 0 154 255
160
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
161
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
162
+ 255 215 154 154 154 154 154 154 154 154 154 154 154 154 215 255
163
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
164
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
165
+ 255 215 154 154 154 154 154 154 154 154 154 154 154 154 215 255
166
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
167
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
168
+ 255 154 0 0 9 41 44 44 44 44 44 9 0 0 154 255
169
+ 255 154 0 0 44 173 158 208 223 223 223 44 0 0 154 255
170
+ 255 154 0 0 44 179 178 219 223 223 223 44 0 0 154 255
171
+ 255 154 0 0 44 185 137 189 223 223 223 44 0 0 154 255
172
+ 255 154 0 0 44 180 170 209 223 223 223 44 0 0 154 255
173
+ 255 154 0 0 40 192 208 223 223 223 223 44 0 0 154 255
174
+ 255 154 0 0 44 187 204 223 223 223 223 44 0 0 154 255
175
+ 255 154 0 0 9 44 44 44 44 44 44 9 0 0 154 255
176
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
177
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
178
+ 255 215 154 154 154 154 154 154 154 154 154 154 154 154 215 255
179
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
180
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
181
+ 255 215 154 154 154 154 154 154 154 154 154 154 154 154 215 255
182
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
183
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
184
+ 255 154 0 0 9 41 44 44 44 44 44 9 0 0 154 255
185
+ 255 154 0 0 44 173 158 208 223 223 223 44 0 0 154 255
186
+ 255 154 0 0 44 179 178 219 223 223 223 44 0 0 154 255
187
+ 255 154 0 0 44 185 137 189 223 223 223 44 0 0 154 255
188
+ 255 154 0 0 44 178 170 209 223 223 223 44 0 0 154 255
189
+ 255 154 0 0 35 150 187 223 223 223 223 44 0 0 154 255
190
+ 255 154 0 0 44 135 177 223 223 223 223 44 0 0 154 255
191
+ 255 154 0 0 9 44 44 44 44 44 44 9 0 0 154 255
192
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
193
+ 255 154 0 0 0 0 0 0 0 0 0 0 0 0 154 255
194
+ 255 215 154 154 154 154 154 154 154 154 154 154 154 154 215 255
195
+ 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
index.html CHANGED
@@ -1,20 +1,26 @@
1
  <!DOCTYPE html>
2
- <html lang="en-us">
3
  <head>
4
  <meta charset="utf-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7
  <title>Unity WebGL Player | WebGL Test AR</title>
 
 
8
  <script src="Build/UnityLoader.js"></script>
9
- <script src="js/three.min.js"></script>
10
- <link rel="stylesheet" href="css/index.css">
11
  </head>
12
 
13
- <body>
14
- <div id="images">
15
- --IMAGES--
16
- </div>
17
- <div id="unityContainer"></div>
18
- <script src="js/app.js"></script>
 
 
 
 
19
  </body>
20
  </html>
 
1
  <!DOCTYPE html>
2
+ <html lang="en-us">
3
  <head>
4
  <meta charset="utf-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7
  <title>Unity WebGL Player | WebGL Test AR</title>
8
+ <script src="js/lib/aframe.min.js"></script>
9
+ <script src="js/lib/aframe-ar.js"></script>
10
  <script src="Build/UnityLoader.js"></script>
11
+ <script src="js/app.js"></script>
12
+
13
  </head>
14
 
15
+ <body style="margin: 0px; overflow: hidden;">
16
+ <a-scene embedded arjs vr-mode-ui="enabled: false" copycanvas>
17
+ <div id="unityContainer" style="z-index: 2" ></div>
18
+ <!-- <a-marker preset="hiro"> <a-box></a-box> </a-marker> -->
19
+ <!-- <a-marker type="pattern" url="data/markers/pattern-arjs.patt"><a-box></a-box></a-marker> -->
20
+ <!-- <a-marker type="pattern" url="data/markers/test.patt" markercontroller="name : hiro"></a-marker> -->
21
+
22
+ --MARKERS--
23
+ <a-entity camera cameratransform></a-entity>
24
+ </a-scene>
25
  </body>
26
  </html>
js/app.js ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const unityInstance = UnityLoader.instantiate("unityContainer", "%UNITY_WEBGL_BUILD_URL%");
2
+ let isCameraReady = false;
3
+ let isDetectionManagerReady = false;
4
+ let gl = null;
5
+
6
+ function cameraReady(){
7
+ isCameraReady = true;
8
+ gl = unityInstance.Module.ctx;
9
+ }
10
+
11
+ function detectionManagerReady(){
12
+ isDetectionManagerReady = true;
13
+ }
14
+
15
+ function createUnityMatrix(el){
16
+ const m = el.matrix.clone();
17
+ const zFlipped = new THREE.Matrix4().makeScale(1, 1, -1).multiply(m);
18
+ const rotated = zFlipped.multiply(new THREE.Matrix4().makeRotationX(-Math.PI/2));
19
+ return rotated;
20
+ }
21
+
22
+ AFRAME.registerComponent('markercontroller', {
23
+ schema: {
24
+ name : {type: 'string'}
25
+ },
26
+ tock: function(time, timeDelta){
27
+
28
+ let position = new THREE.Vector3();
29
+ let rotation = new THREE.Quaternion();
30
+ let scale = new THREE.Vector3();
31
+
32
+ createUnityMatrix(this.el.object3D).decompose(position, rotation, scale);
33
+
34
+ const serializedInfos = `${this.data.name},${this.el.object3D.visible},${position.toArray()},${rotation.toArray()},${scale.toArray()}`;
35
+
36
+ if(isDetectionManagerReady){
37
+ unityInstance.SendMessage("DetectionManager", "markerInfos", serializedInfos);
38
+ }
39
+ }
40
+ });
41
+
42
+ AFRAME.registerComponent('cameratransform', {
43
+ tock: function(time, timeDelta){
44
+
45
+ let camtr = new THREE.Vector3();
46
+ let camro = new THREE.Quaternion();
47
+ let camsc = new THREE.Vector3();
48
+
49
+ this.el.object3D.matrix.clone().decompose(camtr, camro, camsc);
50
+
51
+ const projection = this.el.components.camera.camera.projectionMatrix.clone();
52
+ const serializedProj = `${[...projection.elements]}`
53
+
54
+ const posCam = `${[...camtr.toArray()]}`
55
+ const rotCam = `${[...camro.toArray()]}`
56
+
57
+ if(isCameraReady){
58
+ unityInstance.SendMessage("Main Camera", "setProjection", serializedProj);
59
+ unityInstance.SendMessage("Main Camera", "setPosition", posCam);
60
+ unityInstance.SendMessage("Main Camera", "setRotation", rotCam);
61
+
62
+ let w = window.innerWidth;
63
+ let h = window.innerHeight;
64
+
65
+ const unityCanvas = document.getElementsByTagName('canvas')[0];
66
+
67
+ const ratio = unityCanvas.height / h;
68
+
69
+ w *= ratio
70
+ h *= ratio
71
+
72
+ const size = `${w},${h}`
73
+
74
+ unityInstance.SendMessage("Canvas", "setSize", size);
75
+ }
76
+
77
+ if(gl != null){
78
+ gl.dontClearOnFrameStart = true;
79
+ }
80
+ }
81
+ });
82
+
83
+ AFRAME.registerComponent('copycanvas', {
84
+ tick: function(time, timeDelta){
85
+ const unityCanvas = document.getElementsByTagName('canvas')[0];
86
+ unityCanvas.width = this.el.canvas.width
87
+ unityCanvas.height = this.el.canvas.height
88
+ }
89
+ });
js/lib/aframe-ar.js ADDED
The diff for this file is too large to render. See raw diff
 
js/lib/aframe.min.js ADDED
The diff for this file is too large to render. See raw diff