Try MAXST AR Fusion Tracker Now ✨
List
Native perform ray-casting from mobile touch screen to the AR environment
Posted Date: 2020-04-13 4:51     Edited Date: 2020-04-14 1:54     Writer: prakash_mayane

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.

Hi,

 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.

 

Posted Date: 2020-04-13 8:09     Edited Date: 2020-04-13 8:09     Writer: sjkim

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.

 

 

Best regards

Francisco

MAXST Support Team

Posted Date: 2020-04-13 12:04     Edited Date: 2020-04-13 12:04     Writer: prakash_mayane

Hi,

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.

 

Posted Date: 2020-04-14 1:54     Edited Date: 2020-04-14 1:54     Writer: sjkim

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.

 

 

Best regards

Francisco

MAXST Support Team