I want to load some models in my application
but I really do not
I see in your topic title that you want to do this from an URL, I leave this question for someone else.
I see the code,
//app.loader.getHandler(“model”).addParser(new pc.ObjModelParser(app.graphicsDevice), function (url, data) {
return (pc.path.getExtension(url) === ‘.obj’);
});
var url = "../assets/models/monkey/monkey.obj";
app.assets.loadFromUrl(url, "model", function (err, asset) {
entity = new pc.Entity();
entity.addComponent("model");
entity.model.model = asset.resource;
app.root.addChild(entity);
});
you look look
Can you share a project of the issue that you are having please?
thank you!! I can loading glb now,