【问题标题】:I'm trying to set up a marker inside of a QR code, but can't seem to get it to work我正在尝试在 QR 码内设置标记,但似乎无法正常工作
【发布时间】:2020-07-08 14:07:38
【问题描述】:

我的客户希望用户/读者能够扫描二维码并被带到具有 AR 体验的 URL。相同的二维码应该能够触发 AFrame AR 体验。我在 QR 码内放置了一个标记,但相机无法识别该标记,即使我已在实体上引用了标记图案。

<a-scene embedded arjs="detectionMode: mono_and_matrix; matrixCodeType: 3x3;" vr-mode-ui='enabled: false;' renderer="logarithmicDepthBuffer: true;">
    <a-assets>
        <video id="video"
           preload="auto"
           src="testvideo.mp4"
           width="80" height="45" autoplay loop="true">
        </video>
    </a-assets>
    <a-marker-camera type="pattern" preset="custom" url="marker/marker.patt">
        <a-entity material="shader: flat; src: #video"
              geometry="primitive: plane; width: 80; height: 45;"
              position="0 0 0"
              scale=".05 .05 .05"
              rotation="45 0 0" play-on-window-click>
        </a-entity>
    </a-marker-camera>
</a-scene>

【问题讨论】:

    标签: augmented-reality qr-code aframe


    【解决方案1】:

    “在 QR 码内放置标记”是什么意思?如果您向其添加框架并将其制成 .patt 文件,则 QR 码可以是标记本身。您可以在我们的平台echoAR 上看到它的样子,我们在那里做完全相同的事情,并且二维码看起来像这样(您的二维码应该看起来相似):

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-29
      • 2017-09-04
      • 2012-05-06
      相关资源
      最近更新 更多