The Forum is up for sale: XeNTaX Forum looking for new owner

MTL Codeline for Texture Source

Post questions about game models here, or help out others!
Post Reply
Jan666
veteran
Posts: 115
Joined: Wed Oct 31, 2018 6:26 pm
Has thanked: 15 times
Been thanked: 10 times

MTL Codeline for Texture Source

Post by Jan666 »

I have a Question, dont know if i am right here. So, If i extract Game files i have the 3d Model files (for this example Obj) and the Texture Files (PNG or anything). The OBJ put also an MTL file out, that give the obj the information to find the right texture, for example:

newtl shader_0
map_Kd example.png

newtl shader_1
map_Kd example1.png

My Problem is that the obj and mtl files are not in the same Folders is like the texture (png) is. When i want put them togehter in 3d Modeling Programm like Maya or Blender i have to copy them in the same folder, that means a lot of copying and mouseclicking when i work with many Files. Exist there a simple codeline i can write in the mtl file via Editor to get the source folder for the texture when i open it in maya or blender??
Sry for my bad english its not my motherlanguage.
Post Reply