Skip to content

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

@tangzt0415

Description

@tangzt0415

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! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions