Custom 3D object Support for native Android development
Please provide your development details as below;
1. SDK Version:5.0.2
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): One plus 6
Hi,
Going through the android native sample app there is support for basic 3d objects such as sphere, cube etc but is it possible to import an obj or gltf object in the AR scene ?, there is no gltf renderer or obj renderer to help render a complex object.
We can assist better if you attach screenshots of issues.
Thanks for your interest to our MAXST AR SDK.
Sorry,
We don't support related 3D objects Loader.
Therefore, You have to load the 3D model directly with the 3D loader or otherwise draw the 3D model with OpenGL.
If you have other questions, feel free to questions us.
Best regards
Francisco
MAXST Support Team
Hi ,
What do you mean by loading 3D model directly with 3D loader.
Best regards,
Naman Kulshreshtha
Unfortunatly, We are unable to provide any 3D models.
Therefore, please load the 3D model through the 3D model(obj, fbx, etc) loader.
If you have other questions, feel free to questions us.
Best regards
Francisco
MAXST Support Team
Hi Francisco,
Thanks for the reply, I was going though google filament to render gltf objects but to render that properly filament camera api require's the pose of the virtual camera, going through the maxST android CameraDevice javadocs there is no way to get that, can you advice in how can i acquire that?, for reference google arcore provides this value through this method (ARCore Camera )
Regards
Naman Kulshreshtha
Do you wanna get the pose of the tracked target?
You can get the pose through Trackable.getPoseMatrix() function.
Please refer to the bottom function list.
https://developer.maxst.com/d/APIRef/v5.0.x/renew/Android/html/classcom_1_1maxst_1_1ar_1_1_trackable.html
Best regards
Francisco
MAXST Support Team
Hi Francisco,
No, I dont want to get the pose of the tracked target, instead i want to get the viewMatrix of the camera, is that possible ?
Regards,
Naman Kulshreshtha
You can get the view matrix of the camera using the targetPose variable.
Please refer to the bottom code.
Trackable trackable = trackingResult.GetTrackable(0);
Matrix4f targetPose = trackable.GetTargetPose().inverse;
If you have any questions or encounter any issues, feel free to questions us.
Best regards
Francisco
MAXST Support Team