I develop 3D scene with 2D charactor on it (like YS VI: The Ark of Napishtim)
and I cannot set texture filtering properly I use this code in my custom scene node :
Code: Select all
virtual void setTextureFilter(TEXTURE_FILTER_FLAG efil)
{
eTextureFilter = efil;
switch (eTextureFilter)
{
case TEXTURE_NO_FILTER:
setMaterialFlag(EMF_BILINEAR_FILTER , FALSE);
setMaterialFlag(EMF_TRILINEAR_FILTER , FALSE);
break;
case TEXTURE_BILINEAR_FILTER:
setMaterialFlag(EMF_BILINEAR_FILTER , TRUE);
setMaterialFlag(EMF_TRILINEAR_FILTER , FALSE);
break;
case TEXTURE_TRILINEAR_FILTER:
setMaterialFlag(EMF_BILINEAR_FILTER , TRUE);
setMaterialFlag(EMF_TRILINEAR_FILTER , TRUE);
break;
default:
break;
}
}
ps. my app test in all driver (opengl, dx8, dx9) and result is not the same!.
When I change driver type result is change too. But it look finest on opengl, I think that dx8, dx9 have some problem in sorting scenenode order to be drawn.
Any help would be appreciated.