webarkit / ARnft

A small javascript library for WebAR with NFT
GNU Lesser General Public License v3.0
220 stars 54 forks source link

"loadNFTMarker -> 0" in the console but should display the correct id #233

Open kalwalt opened 3 years ago

kalwalt commented 3 years ago

As reported in other issues, comments, when running the multi nft markers example it display not the correct id in the console:

loadNFTMarker ->  0
ec56001f-7e38-4b9e-b0b7-03e35b4d0ec8:1 {id: 0, width: 640, height: 480, dpi: 72}
...
loadNFTMarker ->  0
b4cae11c-b824-4dc5-9f34-25b101a6271c:1 {id: 0, width: 640, height: 480, dpi: 72}
...
loadNFTMarker ->  0
68d27317-4db4-4135-9241-c9d6e02b7bf5:1 {id: 0, width: 893, height: 1117, dpi: 120}

but instead should be:

loadNFTMarker ->  0
ec56001f-7e38-4b9e-b0b7-03e35b4d0ec8:1 {id: 0, width: 640, height: 480, dpi: 72}
...
loadNFTMarker ->  1
b4cae11c-b824-4dc5-9f34-25b101a6271c:1 {id: 1, width: 640, height: 480, dpi: 72}
...
loadNFTMarker ->  2
68d27317-4db4-4135-9241-c9d6e02b7bf5:1 {id: 2, width: 893, height: 1117, dpi: 120}
kalwalt commented 3 years ago

For sake of truth: that is the correct output but can be confusing...