1
$\begingroup$

I am using Blender 2.76. I have a cube with a texture I would like to export as an OBJ. But each time I do so the path to the texture is not included in the MTL file, but the texture coords are included in the OBJ file. How can I fix this? I am pretty new to Blender so sorry if I gave not enough information.

$\endgroup$
3
  • $\begingroup$ MTL files that generate alongside OBJ files are pretty open ended and depend on the program that you intend to use with them. What program are you trying to export to? $\endgroup$ – Kirbinator Apr 27 '16 at 15:01
  • $\begingroup$ I am writing my own game engine, framework and library from the ground up in C#. Was busy writing a parser and was in need of an OBJ model file. When I tried to export one in Blender I noticed the texture was missing. $\endgroup$ – TheBoneJarmer Apr 27 '16 at 21:38
  • $\begingroup$ In a word: without the .blend file, we cannot help. We can try to guess what’s going wrong but this is wasting time mostly… $\endgroup$ – mont29 Apr 28 '16 at 12:34
1
$\begingroup$

In the export window verify the checkbox "Write materials" is checked. Also ensure you have all the textures as external files (not packed in the blend file itself). Also ensure you have created the material. In Blender, it's possible to see a textured object in the viewport after unwrapping it, but without creating a material at all. If the material isn't created, you might see it in the viewport, but it won't be "real." =)

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.