Page 1 of 1
Have Trainwreck of an OBJ File - What Files Do I Need?
Posted: Tue Mar 16, 2021 12:59 pm
by JCVGN
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?
Re: Have Trainwreck of an OBJ File - What Files Do I Need?
Posted: Sun Mar 21, 2021 1:43 am
by XNAaraL
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?
You need the
.mtl file (Wavefront Material Template Library (MTL) File Format).
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
Just switch "Config-->Show warnings" to On
Re: Have Trainwreck of an OBJ File - What Files Do I Need?
Posted: Sun May 09, 2021 6:23 am
by JCVGN
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?
Posted: Tue May 11, 2021 5:58 am
by XNAaraL
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
Re: Have Trainwreck of an OBJ File - What Files Do I Need?
Posted: Mon Aug 21, 2023 9:39 am
by ilego
XNAaraL wrote: ↑Sun Mar 21, 2021 1:43 am
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?
You need the
.mtl file (Wavefront Material Template Library (MTL) File Format).
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
Just switch "Config-->Show warnings" to On
And to get the Xps to OBJ?