News:

 

Topic: Obj Export - *.mtl name  (Read 9968 times)

0 Members and 1 Guest are viewing this topic.

  • Posts: 424
  • Triangle
    • Reiner`s Tilesets
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.
Free Gamegraphics, Freeware Games http//www.reinerstilesets.de

  • Posts: 547
  • Administrator
  • Polygon
September 22, 2012, 12:15:12 pm
It is actually using the material name, make a new, material and name it.

  • Posts: 424
  • Triangle
    • Reiner`s Tilesets
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 :)
Free Gamegraphics, Freeware Games http//www.reinerstilesets.de

  • No avatar
  • Posts: 2102
  • Polygon
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"




  • No avatar
  • Posts: 3716
  • Developer
  • Administrator
  • Polygon
September 25, 2012, 12:17:31 pm
fixed.

  • Posts: 424
  • Triangle
    • Reiner`s Tilesets
September 25, 2012, 12:39:17 pm
Yay :)
Free Gamegraphics, Freeware Games http//www.reinerstilesets.de