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

OBJ + MTL file #36

Open
cychong24 opened this issue Apr 9, 2022 · 1 comment
Open

OBJ + MTL file #36

cychong24 opened this issue Apr 9, 2022 · 1 comment
Labels
enhancement New feature or request Feature request question Further information is requested

Comments

@cychong24
Copy link

Hi, I am facing problem in loading OBJ & MTL 3D model using ARnft. Is there any example for this case?
As i know using addModel function can only apply to glTF model or glb model.
image

@kalwalt kalwalt added enhancement New feature or request question Further information is requested Feature request labels Apr 9, 2022
@kalwalt kalwalt transferred this issue from webarkit/ARnft Apr 9, 2022
@kalwalt
Copy link
Member

kalwalt commented Apr 9, 2022

Hi @cychong24 i moved the issue to ARnft-threejs tracker issue because the question belong to it. And yes i can confrim to you that addModel can only load glTF type of models. It will be nice to add more types of 3d models. In the meantime i think you can use such workaround:

let nftAddTJS = new ARnftThreejs.NFTaddTJS(nft.uuid);
let url = "path/to/some.OBJ"
 const loader = new OBJLoader();
        loader.load(url, (obj) => {
            nftAddTJS.add(obj);
        });

I have not tested the code but i will post a live example when i have time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Feature request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants