i have a modelmesh that has a image on it. When i draw the modelmesh i get the image but i also get a black bacground. The image is png and transparent and is added in 3ds max(i don't give it coordinates to be drawn, it sits on the modelmesh). How can i make the black background transparent?
Here is my drawing code:
foreach (BasicEffect effect2 in modelMesh)
{
effect2.DiffuseColor = Color.White.ToVector3();
effect2.LightingEnabled = true;
effect2.AmbientLightColor = new Vector3(1, 1, 1);
effect2.Projection = camera.projectionMatrix;
effect2.View = camera.viewMatrix;
effect2.World = transforms[modelMesh.ParentBone.Index] * gameobject.orientation;
effect2.Alpha = 1;
}
modelMesh.Draw();