我正在使用AR.js,即使摄像机正在跟踪几个不同的标记,我也希望仅跟踪一张图像以在其上放置视频。
我无法通过大量搜索找到解决方案。
有什么解决办法吗?
谢谢!
<a-scene embedded arjs="debugUIEnabled: false" vr-mode-ui="enabled: false">
<a-assets >
<video autoplay muted id="vid" loop="true" crossorigin webkit-playsinline playsinline controls>
<source type="video/mp4" src="video/ar.mp4">
<h3>Error : Your browser does not support.</h3>
<!-- FOR NOTMAL VIDEO YOU CAN USE MP4 or WEBM BUT FOR ALPHA VIDEO YOU NEED TO USE .WEBM FORMAT-->
</video>
<video autoplay muted id="vid2" loop="true" crossorigin webkit-playsinline playsinline controls>
<source type="video/mp4" src="video/ar2.mp4">
<h3>Error : Your browser does not support.</h3>
<!-- FOR NOTMAL VIDEO YOU CAN USE MP4 or WEBM BUT FOR ALPHA VIDEO YOU NEED TO USE .WEBM FORMAT-->
</video>
</a-assets>
<a-marker crossorigin="anonymous" id="memarker" type="pattern" url="pattern-marker.patt" vidhandler>
<a-plane position='0 0 0' scale="4.8 2.7 0" rotation="-90 0 0" material='transparent:true;alphaTest:0;src:#vid'></a-plane>
</a-marker>
<a-marker crossorigin="anonymous" id="memarker" type="pattern" url="pattern-marker2.patt" vidhandler2>
<a-plane position='0 0 0' scale="4.8 2.7 0" rotation="-90 0 0" material='transparent:true;alphaTest:0;src:#vid2'></a-plane>
</a-marker>
<a-entity camera></a-entity>
</a-scene>