google-ar / arcore-android-sdk

ARCore SDK for Android Studio
https://developers.google.com/ar
Other
4.91k stars 1.2k forks source link

How to correctly replace an obj file in hello_ar_kotlin sample. #1618

Open kannabi opened 8 months ago

kannabi commented 8 months ago

Of course, here's a revised version without the specific error message:

Title: Model Replacement in ARCore Not Rendering

Description:

Hello ARCore team,

I've been working on integrating a custom 3D model into an ARCore sample project, specifically the hello_ar_kotlin demo. Upon replacing the default .obj model with my own, the new model fails to render in the AR scene. I've been unable to identify any explicit errors in the logs that could explain the behavior.

Steps to reproduce:

Clone the hello_ar_kotlin demo from the ARCore SDK. Replace the default .obj file in the assets folder with a custom model. Launch the app and initiate the AR session. Expected Result:

The custom 3D model should render correctly in the AR scene, similar to the default model.

Actual Result:

The model does not appear/render in the AR scene upon initialization.

I've validated the .obj model using third-party tools to ensure its integrity. I've also followed all recommended steps for integration, including ensuring correct paths, adjusting scales, and checking for compatibility.

Any guidance or insights into why the model isn't rendering would be highly appreciated. Thank you in advance for your assistance!