Textures aren’t being loaded in my project if the color is specified in the materials file. The object will show up correctly in the object viewer popup with the textures, but when run in the project the textures are missing.
If my object.mtl file has:
newmtl wire_1
Kd 0.0039 0.0078 0.0018
map_Kd obj1Diff.png
This will cause the object viewer popup to show correctly but not when the project is run. The texture will be missing and a single color will be shown on the object. No error will occur.
However, when I comment out the color it will work in both the object viewer and in the project code.
newmtl wire_1
#Kd 0.0039 0.0078 0.0018
map_Kd obj1Diff.png
The materials file is auto generated, so it is a little difficult to comment it out each time I make an edit.
If you have the time, could you please look in to it. Thanks!