Native perform ray-casting from mobile touch screen to the AR environment
Please provide your development details as below;
1. SDK Version:5.0
2. Development Environment: (eg. Unity-Android, Unity-iOS, Native Android, Native iOS):Native Android
3. Tracker/Scanner:Image Tracker
4. License Type(Free / Pro-One Time Fee / Pro-Subscription / Enterprise):Free
5. Target Device(Optional):
We can assist better if you attach screenshots of issues.
I am displaying some 2D images in AR world via imageTracker, are there any API to perform a hit Test, i.e raycast from my touchpoint to the real world enviornment and get an array of interescted plane or trackables.
Thanks for your interest to our MAXST AR SDK.
We don't have your called raycast hit function.
However, there are other alternatives to our MAXST AR SDK API
1. Why don you use com.maxst.ar.TrackingState.getTrackingResult() function.
getTrackingResult() returns the target's trackable state when it hits the target.
2. Why don you use com.maxst.ar.TrackerManager.findSurface() function.
findSurface() is a plane recognition. and then, If you touch the content, the content is augmented.
But it is using Instant Tracker.
If you have other question, feel free to continues question us.
MAXST Support Team
Thanks for your reply, I have already augmented the image in the AR environment but what i am trying to achieve is, if an user touches screen and if that point is above the augmunted image then do some actions such as play a video.
My understanding of your second point is that the method findSurface() will only help me in finding eligible surface where i can augument an image.
Please correct me if I am wrong.
My first point is the ImageTracker tracks the target, the suggestion is to create a button
that augments the desired object through the findViewById () setOnClickListener () function.
My second point is that to show you an example of plane recognition, I showed you InstantTracker.
However, this feature is utilized in Extended Mode to robustly tracking targets in ImageTracker.
If you have another question, feel free to continues question us.
MAXST Support Team