Try MAXST AR Fusion Tracker Now ✨
List
BT-350 raycast in 3D mode
Posted Date: 2021-03-18 10:46     Edited Date: 2021-03-25 6:40     Writer: peter.zborovsky

1. SDK Version:
2. Development Environment: Unity-Android,
3. Tracker/Scanner:
4. License Type: Free
5. Target Device(Optional): BT-350
 

Hello there,

I would like to ask about raycasting in 3D mode. I would like to check whether mouse position (Input.mousePosition) hits any object with collider in 3D mode. I have tried using both leftEye and rightEye camera from WearableCalibration but it returns hits on very strange positions (where there is nothing in the scene). Do you know how to correctly check whether the mouse is over a 3D object placed in the scene in 3D mode with the WearableCalibration on moverio BT-350? Or am I missing something? Thanks in advance.

Peter

Posted Date: 2021-03-22 4:57     Edited Date: 2021-03-22 4:57     Writer: sjkim

Thank you for your interest in MAXST AR SDK.

 

Please check whether the calibration information is automatically read by linking with the profile activated in the WearableCalibTool app.

To check, Add WearableManager.GetInstance().WearableManager() function inside the Start() function. 

 

Please refer to the bottom link for more information 

https://developer.maxst.com/d/APIRef/v5.0.x/Unity/classmaxst_a_r_1_1_wearable_calibration.html

 

If you have related the MAXST AR SDK questions, feel free to ask.

 


 
Best regards,

Francisco

MAXST Support Team

Posted Date: 2021-03-23 13:48     Edited Date: 2021-03-23 13:48     Writer: peter.zborovsky

Hi Francisco, 

The function you have sent me is probably not correct as "WearableManager.GetInstance().WearableManager()" does not exist. However, I have checked and correct profile is loaded (the one I have created with calibration tool). WearableCalibration creates two cameras, each for one eye (I am sure I have loaded correct calibration file - the profile loaded is the one I have created) but when I create ray with MainCamera.ScreenPointToRay(Input.mousePosition); or LeftCamera.ScreenPointToRay(Input.mousePosition); or RightCamera.ScreenPointToRay(Input.mousePosition);  Raycast (Physics.Raycast(ray, out hit)) returns unexpected values (returns no hit in areas where the hit is expected and returns hit in specific area of the screen where there is no object). How dooes one correctly transfrom screenPointToRay in 3D mode on BT-350? Thanks for help.

Peter

Posted Date: 2021-03-25 6:40     Edited Date: 2021-03-25 6:40     Writer: sjkim

We understood that the intention you were asking is that you want the mouse position (Input.mousePosition)

when colliding on all objects on the BT-350.

 

But, MAXST AR SDK doesn't provide any position information related matters.

Therefore, The forum provides answers to the usage and bugs of MAXST AR SDK.

 

If you have related the MAXST AR SDK questions, feel free to ask.

 


 
Best regards,

Francisco

MAXST Support Team