Hey everyone,
I’m working on an Android project using ARToolkit and I’m stuck. I want to track several NFT markers at the same time but it’s not working out.
I know ARWrapper added this feature a while back but it’s pretty complicated. I’ve looked everywhere for Android examples or how-tos but no luck.
Anyone here have experience with this? I’m specifically talking about NFT markers not the usual ones like hiro or kanji.
Any tips or pointers would be really helpful. Thanks!
hey creativePainter45, i’ve messed around with ARToolkit on android before. for simultaneous NFT tracking, you gotta tweak the ARNativeActivity class. Add multiple AR_TEMPL_TRACKING_STATE_Template structs and use arwUpdateNFT() in a loop for each marker. It’s tricky but doable. lmk if u need more specifics!
I’ve dealt with similar challenges in ARToolkit for Android. One approach that worked for me was modifying the ARNativeActivity to handle multiple NFT markers. You’ll need to create separate AR_TEMPL_TRACKING_STATE_Template instances for each marker you want to track simultaneously. Then, implement a loop in the update method to call arwUpdateNFT() for each marker.
Be aware that this can be computationally intensive, especially on older devices. You might need to optimize performance by limiting the number of markers tracked at once or reducing the frequency of updates. Also, ensure your NFT marker datasets are properly optimized for mobile use.
If you’re still struggling, consider posting your specific code issues on the ARToolkit GitHub. The community there can often provide targeted assistance.
hey there creativePainter45! i’m super curious about your project. simultaneous NFT marker tracking sounds pretty cool!
have you tried playing around with the ARNativeActivity class like Lee_Books mentioned? what kinda challenges are you running into specifically? i’d love to hear more about what you’re building - maybe we could brainstorm some ideas together? oh and btw, have you checked out any of the ARToolkit forums or github issues? sometimes there’s hidden gems of info there. keep us posted on how it goes!