Heres my latest DLL.
This DLL improves texture filtering quality in Dark Basic pro by using Anisotropic Texture Filtering.
[Screenshot attached]
DBPro currently uses Bilinear Texture Filtering which goes very blurry when viewed at an angle, Anisotropic Filtering corrects this. Heres some more info on anisotropic Filtering:
http://en.wikipedia.org/wiki/Anisotropic_filtering
The DLL contains just 3 commands. They are:
KD SetAnisotropy Value
Use this to set the Anisotropy. I reccomend a value of 8 (which sets the anisotropy to 8x). But if you want super high quality results, set it to 16. This command is very low complexity, which means that you can hold a good FPS even if you call it lots of times every loop.
KD SetObjectAnisotropicFilteringOn ObjectID
This turns anisotropic filtering on for an object. As soon as this command is called, the object will immediately start using Anisotropic Texture filtering on all its texture stages. This command is also very low complexity.
KD SetObjectAnisotropicFilteringOff ObjectID
This turns off anisotropic filtering.
Screenshot:
Special thanks to roka. Screen shots from
Rush Team (FPS)
The below file includes:
Plugin Binary
Keywords File
Readme
Textured plane demo
Terrain demo (requires BlitzTerrain)
Download Version 1.02 (05/2/2011):
DOWNLOAD
TORRENT:
Source code:
DOWNLOAD
Dark GDK code.
Posted by Prasoc
for(int i = 0; i < 8; i++) {
dbGetDirect3DDevice()->SetSamplerState(i,D3DSAMP_MAXANISOTROPY,16)
}
void SetAnisotropicFilteringOn(unsigned long object)
{
sObject* Object=dbGetObject(object);
int i;
unsigned long t;
for(i=0;i<Object->iMeshCount;i++)
{
for(t=0;t<Object->ppMeshList[i]->dwTextureCount;t++)
{
Object->ppMeshList[i]->pTextures[t].dwMinState=D3DTEXF_ANISOTROPIC;
}
}
}
This plugin and source code is released into the Public Domain.
Plugin and source code may be used in any project. Commercial or non commercial. No credit required. No royalties.
Your signature has been erased by a mod please reduce it to no larger than 600 x 120.