0
$\begingroup$

I have tried https://www.youtube.com/watch?v=AdrFMEgNgF4 which uses cycles method. But I haven't found any way to export with materials.

I followed this https://www.youtube.com/watch?v=Gi3oFolsPI0 which uses blender render but the exported obj file is not visible in threejs and https://3dviewer.net/.

Blender file using Blender render method https://drive.google.com/file/d/1nfRLu_BzHYvycXZG5Jqjymj5eV6tYvxP/view?usp=sharing

Using cycles method https://drive.google.com/file/d/1X48y4D4ImEe03_oxQ-OWszjAuDPnZNQV/view?usp=sharing

Obj file https://drive.google.com/file/d/1gbxpyjpQCz-CG4I91S6XhsmRWyAR_HK_/view?usp=sharing

Mtl file https://drive.google.com/file/d/1lSrtM6Fxgsfrp_zUX_R3Fg_MzrIRCxpB/view?usp=sharing

PNG https://drive.google.com/file/d/1KBGWwm-iikbz14bfR9w0_iUb5N6Km_RP/view?usp=sharing

$\endgroup$
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 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.