Hello, when I want to export to Obj. format, blender makes me an mtl. file but does not export the textures on the code line of the mtl. file, so when I want to import my Obj. file into another software I do not have any textures.
You’d need to connect the texture directly into a material surface without other nodes, perhaps Diffuse BSDF or Principled BSDF. The glTF exporter does handle this case:
ACTUALLY glTF export works but after that it does not allow me to have OBJ format. with the texture, I tried to import the glTF. but by redoing the OBJ export. I return to the starting point of my problem
If you open the exported .mtl file in a text editor, you should then see a map_Kd entry under each material declaration:
newmtl Material_1.020
Ns 250.000000
Ka 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.500000
d 1.000000
illum 2
map_Kd Image_1.020.jpg
The only way I know to do this “batched” in Blender would be with a Blender Python API script. Probably there are non-Blender tools for glTF-to-OBJ conversion, which might be another way to do the same thing.