在移动设备上使用 AR.js 时,相机变焦太大 [英] When using AR.js on mobile the camera zooms too much

查看:15
本文介绍了在移动设备上使用 AR.js 时,相机变焦太大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我正在使用的代码.

This is the code I'm using.

当我尝试从我的手机加载这个文件时,相机变焦太大了.

When I try to load this file from my mobile, the camera zooms too much.

就像当我试图在笔记本电脑屏幕上显示图像时,相机变焦太大以至于我无法正确显示正确的图像,从而可以通过 NFT 标记识别图像

It is like when I tried to show an image on laptop screen, the camera zooms too much so that I cannot properly show the correct image so that the image can be identified by NFT marker

  <body style="margin : 0px; overflow: hidden;">
     <a-scene
      vr-mode-ui="enabled: false;"
    renderer="logarithmicDepthBuffer: true;"
    embedded
    arjs="trackingMethod: best; sourceType: webcam;debugUIEnabled: false;">


      <a-nft
        registerevents
        type="nft"
        url="/custom/generic/assests/nft/vc/vc"
        smooth="true"
        smoothCount="10"
        smoothTolerance=".01"
        smoothThreshold="5">

            <a-text id="click_to_play_txt" position="17.06761 44.59457 5.43027" scale="20 20 1" text="color: #000" value="Click to play Video"></a-text>
        </a-nft>
        <a-entity camera></a-entity>
  </a-scene>
</body>
</body>
</html>

推荐答案

在我遇到相机变焦太大"的问题中,是浏览器设置的原因

In my experience of the problem "the camera zooms too much", it is because of the browser settings

就我而言:Google Chrome Mobile > 设置 > 辅助功能.取消选中 Force Enable Zoom 并且 Text Scaling 为 <= 100%

In my case: Google Chrome Mobile > Settings > Accessibility. Uncheck Force Enable Zoom and the Text Scaling is <= 100%

这篇关于在移动设备上使用 AR.js 时,相机变焦太大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆