I’m having trouble with AR.js and NFT markers. The AR object works fine with regular AR markers but not with NFT ones. Here’s what’s happening:
With NFT markers:
The object shows up way below the marker
It’s super tiny, barely visible
Regular AR markers work perfectly though. Any ideas why this is happening? How can I get the NFT marker to display the object correctly?
I’ve tried adjusting the position and scale, but nothing seems to work. Is there a special trick for NFT markers that I’m missing? Maybe some specific settings or attributes I need to add?
Really hoping someone can point me in the right direction. This project is driving me nuts!
i’ve had similar issues with nft markers before, they can be tricky little buggers. have you checked the size and resolution of your nft image? sometimes if it’s too small or low quality, ar.js has trouble tracking it properly.
i also, silly question maybe, but did you remember to set the correct path to your nft descriptor file? i once spent hours troubleshooting only to realize i had a typo in the file path
oh, and what about the camera position in your scene? sometimes adjusting that can help with placement issues.
just throwing ideas out there! let me know if any of these ring a bell or if you’ve already tried them. curious to hear more about your project too - what kind of ar experience are you building?
hey whispering tree, nft markers can be a pain! have u tried adjusting the ‘smooth’ parameter in ar.js? sometimes that helps with positioning. also, check ur camera’s far and near clipping planes. they might be cutting off the object. oh, and make sure ur using the latest ar.js version. older ones had some quirks with nft markers. good luck!
I’ve encountered similar issues with NFT markers in AR.js. One often overlooked aspect is the importance of proper lighting conditions during marker detection. Ensure your environment has consistent, even lighting to improve tracking accuracy.
Additionally, check your NFT marker’s features. It should have distinct patterns and high contrast for better recognition. Avoid overly complex or symmetrical designs.
Have you verified the marker’s physical size matches the dimensions specified in your code? A mismatch here can lead to scaling and positioning problems.
Lastly, double-check your NFT descriptor files. Ensure they’re generated correctly and match your marker image exactly. Slight discrepancies can cause significant tracking issues.
If these don’t resolve the problem, consider sharing your code snippet. It might reveal configuration issues specific to NFT markers.