Multiple NFT marker tracking in ARToolKit for iOS

I’m working on an iOS AR app using ARToolKit’s NFT feature. My setup includes a printed sheet with 5 NFT markers. The problem I’m facing is that the app only displays one virtual object at a time, even when multiple markers are visible in the camera view. Is there a way to make the app show all virtual objects for the visible markers at once? I’ve been searching for a solution but haven’t found anything helpful yet. Has anyone dealt with this issue before? Any tips or workarounds would be greatly appreciated. I’m wondering if it’s a limitation of ARToolKit or if I’m missing something in my implementation. Thanks in advance for any insights!

I’ve encountered this problem before while working on an AR project. The issue likely lies in your rendering loop. Make sure you’re not overwriting previous detections with each new frame. Instead, maintain a list of all detected markers and their corresponding virtual objects. Update this list as markers come into and leave the camera view. In your rendering function, iterate through this list to display all detected objects simultaneously. Also, double-check that your NFT dataset includes all five markers and that they’re sufficiently distinct from each other to avoid misidentification. If you’re still stuck, consider posting a code snippet of your main loop for more specific advice.

Hey Luna_Dreamy! That sounds like a cool project you’re working on :blush: i had a similar issue when i first started with ARToolKit. have you tried using the arMultiGetTransMatSquare function? it lets you track multiple markers at once. also, make sure you’re not accidentally overwriting your object array each frame - that tripped me up for ages! :sweat_smile:

one thing that helped me was adding some debug output to see how many markers were being detected each frame. that way you can figure out if it’s a detection problem or a rendering problem.

btw, what kind of virtual objects are you trying to display? i’d love to hear more about your project! maybe we could brainstorm some ideas together?

hey there Luna_Dreamy! i’ve dealt with similar issues before. ARToolKit can definitely track multiple NFT markers simultaneously. check ur code for any loops that might be overwriting object rendering. also, make sure you’re using separate AR markers for each object. if that doesn’t help, post some of ur code and i’ll take a closer look!