thanks for the reply.I used 3ds max to export everything, but it seems it isn't working.I used now prefab to export the obj and it is working :)
On 13 Май, 14:56, Fabrice3D <[email protected]> wrote: > Oh wait, I see its in same folder... If you drop the obj in Prefab, > look in loading log panel, it should trace the url obj tries to load. > Also make sure the image is having the right privileges on your disc. > > Sent from an iPhone without Flash > > On May 13, 2010, at 11:35, toshmosh <[email protected]> wrote: > > > > > Hi. I have a problem with loading material of obj file.The obj is > > loaded, but the texture isnt. > > Here is my code for loading obj > > > obj_loader2 = Obj.load("../assets/ogre_house/ogre_house.obj"); > > obj_loader2.bothsides = true; > > house_mesh = obj_loader2.handle; > > house_mesh.position = new Number3D(-400,0,0); > > scene.addChild(house_mesh); > > > Here is my mtl file > > > # 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware > > # File Created: 13.05.2010 11:47:45 > > > newmtl House_MAT > > map_Kd house_diffuse.jpg > > > and in the obj file > > there is > > mtllib ogre_house.mtl > > and the vertices > > > the texture,mtl and obj are in same folder > > Any ideas?
