public struct MyVertex
{
public float X,Y,Z;
public Int32 dwDiffuse;
public float Tu1,Tv1;
public float Tu2,Tv2;
}
Texture Blending Problem (with screenshots)
I am experimenting with how to blend textures together. Using the DirectX MFCTex tool I get this result:
When I copy the source they generate and try it out myself the resulting image appears "blocky" and not smooth:
Any ideas why my blending does not come out smooth like it does in the MFCTex tool?
My vertices are defined as and the block I texture is a simple quad:
Thanks in advanced.
You need to enable bilienear filtering for that stage:
You probably don't need it for minification, but magnification definitely.
edit: Oops, I didn't notice you were using C#. I don't know C#, but search for the filtering properties in the managed documentation.
pDevice->SetTextureStageState(stage with that texture, D3DTSS_MINFILTER, D3DTEXF_LINEAR);pDevice->SetTextureStageState(stage with that texture, D3DTSS_MAGFILTER, D3DTEXF_LINEAR);
You probably don't need it for minification, but magnification definitely.
edit: Oops, I didn't notice you were using C#. I don't know C#, but search for the filtering properties in the managed documentation.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement