XNA- Texturing problem, exporting model
        Posted  
        
            by 
                user1806687
            
        on Game Development
        
        See other posts from Game Development
        
            or by user1806687
        
        
        
        Published on 2012-11-26T16:02:32Z
        Indexed on 
            2012/11/26
            17:28 UTC
        
        
        Read the original article
        Hit count: 293
        
How,can I disable coloring when texture is applied, because right now the texture is being colored over.
foreach (BasicEffect effect in mesh.Effects)
{
    effect.TextureEnabled = textureApplied;
    if(textureApplied)
        effect.Texture = Texture2D.FromStream(GraphicsDevice,System.IO.File.OpenRead(texturePath));
    else
    {
        effect.DiffuseColor = ti.DiffuseColor;
        effect.EmissiveColor = ti.EmissiveColor;
    }
    ...
}
mesh.Draw();
Also, is there any easy way for xna to export models? Or do I have to write my own?
© Game Development or respective owner