Hello, I have a .obj model with three JPG textures - a (base color, diffuse, and roughness). That's it, nothing else.
When I load the .obj into XNA (under Modify- Load Generic Item/Load Static .obj) the textures are not applied so the model is that base greyish/white.
There are no error messages or anything.
What files do I need to have the textures applied to the model?
Have Trainwreck of an OBJ File - What Files Do I Need?
Moderators: ObscureMemories, Runa, Love2Raid
Re: Have Trainwreck of an OBJ File - What Files Do I Need?
You need the .mtl file (Wavefront Material Template Library (MTL) File Format).JCVGN wrote:Hello, I have a .obj model with three JPG textures - a (base color, diffuse, and roughness). That's it, nothing else.
When I load the .obj into XNA (under Modify- Load Generic Item/Load Static .obj) the textures are not applied so the model is that base greyish/white.
There are no error messages or anything.
What files do I need to have the textures applied to the model?
The ASCII-based MTL file describes textures to be applied to polygonal facets defined in an OBJ file.
....
Or just use the "XPS-->Modify-->Material Editor" to assign the textures.
BTW:
I am sure, there is a error message


Re: Have Trainwreck of an OBJ File - What Files Do I Need?
Hello, thank you for the reply. Is there a way I can tell which texture goes with which in the material editor?
Re: Have Trainwreck of an OBJ File - What Files Do I Need?
Sure.
Just show me your .mtl file.
map_Kd --> diffuse map
map_Ka --> lightmap map
map_bump or map_Kn --> bump map
map_Kd --> specular map
Just show me your .mtl file.

map_Kd --> diffuse map
map_Ka --> lightmap map
map_bump or map_Kn --> bump map
map_Kd --> specular map
Re: Have Trainwreck of an OBJ File - What Files Do I Need?
And to get the Xps to OBJ?XNAaraL wrote: ↑Sun Mar 21, 2021 1:43 amYou need the .mtl file (Wavefront Material Template Library (MTL) File Format).JCVGN wrote:Hello, I have a .obj model with three JPG textures - a (base color, diffuse, and roughness). That's it, nothing else.
When I load the .obj into XNA (under Modify- Load Generic Item/Load Static .obj) the textures are not applied so the model is that base greyish/white.
There are no error messages or anything.
What files do I need to have the textures applied to the model?
The ASCII-based MTL file describes textures to be applied to polygonal facets defined in an OBJ file.
....
Or just use the "XPS-->Modify-->Material Editor" to assign the textures.
BTW:
I am sure, there is a error messageJust switch "Config-->Show warnings" to On
![]()
PM me if u reply