建立自定義Markerhtml
上傳一張識別圖片,而後下載Marker和及圖片。github
代碼google
ARjs/three.js/examples/mobile-performance.htmlspa
修改代碼code
// 修改ArMarkerControls Marker路徑orm let markerControls1 = new THREEx.ArMarkerControls(arToolkitContext, markerRoot1, {htm type : 'pattern',three // marker匹配數據圖片 patternUrl : "../../res/arjs/custom/google/google-pattern-marker.patt", }) |
掃描生成的圖片加載自定義場景
備註:
AR.js圖片識別能力不是很強,須要上傳特徵明顯,區塊清晰的圖片生成的Marker識別率纔會比較高。灰度/二值logo識別度高。
AR.js的二維碼link