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

how to load in mtl,texture from local storage/sdcard #40

Closed
tangzt0415 opened this issue Jan 15, 2022 · 1 comment
Closed

how to load in mtl,texture from local storage/sdcard #40

tangzt0415 opened this issue Jan 15, 2022 · 1 comment

Comments

@tangzt0415
Copy link

Hi all, i am able to render the obj and its texture/mtl from assets.
Currently i am trying to render the 3d object from local storage instead, however when i add:
obj = cube3d.Object(
fileName: '/storage/emulated/0/Download/testfolder/texturedMesh.obj',
isAsset: false);
using isAsset as false, i am only able to get the mesh of the object with not texture.

I am confused with how to use loadMtl, loadTexture to load the texture on top of the mesh. Any help will be great! :)

@tangzt0415
Copy link
Author

Hi i have found the fix for the above mention issue. It is due to a bug in the mesh.dart file when loading texture
#27 fixes it!

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

No branches or pull requests

1 participant