I created a model (real simple) in 3DSMax 2010, exported it to FBX format and loaded it in an XNA 4.0 content project. I also tried with .X files using kW X-port and it has the same behavior.
I can load the model in a game, and it has it's 3DSMax texture. I can't however change the texture of a face (or all) at runtime. When I do this, it doesn't crash or anything, it just doesn't apply the textures.
I've tried with a sample model from a microsoft creative tutorial (the famous spaceship one) and on that model, with my texture, it works. This is why I think my model isn't working properly.
Anyone care to comment/help?
Note: Even though I don't think the problem is there since I've made it work with another model, here is my LoadContent method to load the model and change the texture of all mesh :
protected override void LoadContent()
{
base.LoadContent();
ContentManager contentManager = new ContentManager(Game.Services, "Content");
Model = (Model)contentManager.Load<Model>(ModelName);
Texture = (Texture2D)contentManager.Load<Texture2D>(TextureName);
foreach (ModelMesh mesh in Model.Meshes)
{
foreach (BasicEffect effect in mesh.Effects)
{
effect.Texture = Texture;
}
}
}