Discussions
ViroARTrackingTargets ARObject support
4 days ago by Alper E
Hi everyone,
I’m trying to use ViroARTrackingTargets with an AR object (.arobject) file. Here’s my setup:
The .arobject was scanned with Apple’s official AR Object Scanning app. When I test with that app, the object is recognized correctly.
I added the .arobject file into my project (assets folder), updated Metro config to include the extension, and confirmed that the file is bundled into the IPA (I can see it inside the built package).
Image tracking (ViroARImageMarker) works fine — I can detect image markers without problems.
The issue is only with AR Object detection: in my Viro app the ViroARObjectMarker never fires onAnchorFound, so it seems the AR object is not recognized.
My question:
- Is AR Object detection currently supported in @reactvision/react-viro (2.43.x)?
- Does anyone have an up-to-date working example using .arobject with ViroARTrackingTargets and ViroARObjectMarker?
Thanks in advance!