NVil Forum

General Category => Bug Reports => Topic started by: Tiles on September 22, 2012, 11:54:05 am

Title: Obj Export - *.mtl name
Post by: Tiles on September 22, 2012, 11:54:05 am
When i export a geometry as obj then the material file, the *.mtl, gets named default.mtl. That way different Obj files all uses the same mtl file.

The exported object should create a *.mtl name that is the same name than the one from the *.obj file. So that each obj file uses its own mtl file. And you know which material depends to what obj file.
Title: Re: Obj Export - *.mtl name
Post by: Passerby on September 22, 2012, 12:15:12 pm
It is actually using the material name, make a new, material and name it.
Title: Re: Obj Export - *.mtl name
Post by: Tiles on September 22, 2012, 12:37:05 pm
Thanks Passerby. But that`s already the problem. It should use the name of the saved object for the mtl file. Else it is impossible to say what *.mtl file corresponds to what *.obj file.

Closer explanation: The mtl file itself is the textfile that contains the material settings. And is linked inside the obj file. The name of the material or the materials ( a mesh can have more than one material) needs to be stored within the mtl file. That`s the place where it belongs to. Not be used as the *.mtl name :)
Title: Re: Obj Export - *.mtl name
Post by: steve on September 22, 2012, 11:31:25 pm
It is actually using the material name, make a new, material and name it.

I do not see that.
Nvil (on .obj save) combines all objects, then names the material with the name it gives to the combined object nvil decides on, which is usually "object_combined.mtl"



Title: Re: Obj Export - *.mtl name
Post by: IStonia on September 25, 2012, 12:17:31 pm
fixed.
Title: Re: Obj Export - *.mtl name
Post by: Tiles on September 25, 2012, 12:39:17 pm
Yay :)