this error means
that the mtl file is not found at the expected location, or that the
directory is locked
if I look at your code, the mtl should be located at
"assets/2009_07_08/3.mtl";
the file "normal_from_Zbrush8.jpg"
should be in same folder.
note that material in init object is useless since the mtl will do the
job for you
or at least will overwrite it once textures are loaded.
Fabrice
On Jul 8, 2009, at 3:48 PM, zhil wrote:
Hello.
I have strange problems with loading obj file.
I try to load file using code like
objLoader=Obj.load("assets/2009_07_08/3.obj",
{material:material,ownCanvas:true,name:"torso",centerMeshes:true});
But I got error
Obj MTL LOAD ERROR: unable to load .mtl file at assets/
2009_07_08/3.obj/
in obj file mtl is defined using line
mtllib 3.mtl
On my local system swf/fla files are located at the folder P:/
obj file are located in p:/assets/2009_07_08/
mtl file are located at the p:/ and p:/assets/2009_07_08/
normal_from_Zbrush8.jpg фку located at the p:/ and p:/assets/
2009_07_08/
I have also uploaded them here
http://files.rightinpoint.com/3.mtl
http://files.rightinpoint.com/3.obj
I am not sure where I should place mtl file so it will be loaded
correctly.
Any suggestions are welcome :)
Thanks, Andrew