2
$\begingroup$

OBJ files do not store textures, hardly anything does - you have to export OBJ, import it to whatever you need it in. Then you need to import textures, create material/shader using the texture and apply it on the OBJ.


Clarifying with some more details:

Applying texture inside blender will only stay in blender. OBJ only has geometry information, mtl has some material data, but no texture information of any sort. What you usually do is:

  1. Make object with UV maps,
  2. Make material,
  3. Export Object,
  4. Bake materials into textures,
  5. Export baked textures.

Then you import it in target environment, be it other 3d software, 3d engine, or anything, and there you re-create material using baked textures and tools available in the environment. Then you apply it onto imported obj.

$\endgroup$
  • $\begingroup$ I am trying to apply PNG texture in blender using UV mapping and load obj & mtl in threejs. Is it not correct? $\endgroup$ – Vedant B Hegde Jan 29 at 13:29
  • $\begingroup$ Updated my answer to add some more detail. $\endgroup$ – internetofmine Jan 29 at 14:34
  • $\begingroup$ Kindly send the links to examples if you have any. $\endgroup$ – Vedant B Hegde Jan 29 at 17:30

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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