Hi,
First of all, are you using Git and if so have you pulled since
yesterday? The OBJParser was previously using it's own internal loader
to load MTL files, which crippled the dependency URL resolution
system, and this was fixed the day before yesterday. If you are using
an older version you need to specify the "resourcesURL" constructor
parameter to the OBJParser (and pass the OBJParser instance to the
load() method instead of relying on the automatic file format
detection.)
In case you are using the updated system (you'll know because there is
no resourcesURL parameter in the OBJParser constructor anymore)
something is definitely wrong. Are you not getting any errors? Is the
MTL and the OBJ placed in the same folder?
Since the day before yesterday, this is all that's necessary to load
an OBJ file, including it's textures, and add it to stage:
var loader : Loader3D = new Loader3D();
loader.load(new URLRequest('path/to/model.obj'));
myScene.addChild(loader);
Cheers
/R
On May 15, 9:27 am, Choons <[email protected]> wrote:
> Hi- I'm trying to get an OBJ and MTL working in Broomstick using the
> new Asset Library approach but cannot get the mtl to load. I've tried
> a couple of different obj models and their associated mtl files but no
> go. Would some kind soul please enlighten me with a snippet of code on
> loading up an obj/mtl model?