OBJLoader + MTLLoader not loading texture image

For some reasons, the color value of the material is black. If I set it to white in the debugger, I see this:

image

So the texture is loaded and set correctly. When I look into your MTL file, the kd value of your material is actually (0,0,0). That means the color value of your material will also be (0,0,0).

"newmtl Tshirt04:lambert1SG
illum 4
Kd 0.00 0.00 0.00
Ka 0.00 0.00 0.00
Tf 1.00 1.00 1.00
map_Kd 27.jpg
Ni 1.00
newmtl polySurface20SG
illum 4
Kd 0.00 0.00 0.00
Ka 0.00 0.00 0.00
Tf 1.00 1.00 1.00
Ni 1.00
newmtl polySurface20SG1
illum 4
Kd 0.00 0.00 0.00
Ka 0.00 0.00 0.00
Tf 1.00 1.00 1.00
Ni 1.00
"

How is you model displayed in Blender or Sketchfab?

1 Like