AR-js-org / AR.js

Image tracking, Location Based AR, Marker tracking. All on the Web.
MIT License
5.46k stars 929 forks source link

Trying to display a box on a NFT marker with 5/5 confidence #159

Open mohGhazala96 opened 4 years ago

mohGhazala96 commented 4 years ago

Do you want to request a feature or report a bug? A bug.

What is the current behavior? The box attached to the nft marker is not displayed. But in the log it appears that the marker is being tracked normally! If the current behavior is a bug, please provide the steps to reproduce.

<script src="https://cdn.jsdelivr.net/gh/aframevr/aframe@1c2407b26c61958baa93967b5412487cd94b290b/dist/aframe-master.min.js"></script>
<script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar-nft.js"></script>

<body style="margin : 0px; overflow: hidden;">
  <a-scene
    vr-mode-ui="enabled: false;"
    renderer="logarithmicDepthBuffer: true;"
    embedded
    arjs="trackingMethod: best; sourceType: webcam;debugUIEnabled: false;"
  >
<!-- we use cors proxy to avoid cross-origin problems -->
    <a-nft
      type="nft"
      url="cardfolder/newqueen"
      smooth="true"
      smoothCount="10"
      smoothTolerance=".01"
      smoothThreshold="5"
    >
    <a-entity geometry="primitive: box; width: 1; height: 1; depth: 1"  position="0 0 0 0" material="color: yellow;">
      </a-entity>
    </a-nft>
    <a-entity camera></a-entity>
  </a-scene>
</body>

Please mention other relevant information such as the browser version, Operating System and Device Name The browser is Chrome and the OS in macOS Catalina.

What is the expected behavior? For the primitive box to appear on the marker.

If this is a feature request, what is motivation or use case for changing the behavior?

JamesBotterill commented 4 years ago

This is a dupe, there's a PR (#114 ) for this but the developer has been busy and not able finalise it yet.