Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to load a single model directly from REPO_URL #224

Open
PiyushKumarDongre opened this issue Oct 23, 2022 · 1 comment
Open

I want to load a single model directly from REPO_URL #224

PiyushKumarDongre opened this issue Oct 23, 2022 · 1 comment
Labels

Comments

@PiyushKumarDongre
Copy link

PiyushKumarDongre commented Oct 23, 2022

Hi,
I want to load a single model directly from REPO_URL, which is in obj format along with texture files.
It works fine the default way, by setting the REPO_URL in MenuActivity, LoadModel->Repository->Select the one from chooser dialog.
I want to avoid the "Chooser Dialog" which lists the name of fetched files having "obj|stl|dae|index" extension and directly load the model.

If I bypass the chooser, and try to launch it directly by calling launchModelRendererActivity(Uri.parse(files.get(0))); , I get the model without any texture.

Kindly help me with this.

@andresoviedo
Copy link
Member

andresoviedo commented Oct 25, 2022

Hello buddy
That is the correct method for loading the model.
But you need to provide the material or texture files into the ContentUtils component beforehand.
Please check the API of ContentUtils in order to preload those files. Please mind that you may probably need to set the Android Context as well into this ContentUtils component.
Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants