/* FIXED */Problem about Texture filtering in OpenGL driver
Posted: Thu Aug 18, 2005 2:45 pm
Hi, I'm new to this engine and now face a serious problems
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 :
When I set filter to TEXTURE_NO_FILTER it will look correct if I add some billboard and particle effect in to scene, if I don't add both things texture look like it had filtered which I don't want it to happen, I just want to use no texture filtering , so dose it has some way to do this properly?
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.
![Crying or Very sad :cry:](./images/smilies/icon_cry.gif)
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.