Here is the relevant area of the code
//Make the 3D world
dbColorBackdrop ( dbRGB ( 0, 100, 255 ));
dbFogDistance ( 300000.0f );
//dbFogColor ( dbRGB ( 55, 55 , 55 ) );
dbFogColor ( 100, 250 , 0 );
if (dbFogAvailable ( ))
dbFogOn ( );
dbSetupTerrain ( );
dbMakeObjectTerrain ( 2 );
dbLoadImage ( "Terrain\\texture.bmp", 4 );
dbLoadImage ( "Terrain\\detail.jpg", 5 );
dbSetTerrainHeightMap ( 2, "Terrain\\map.bmp" );
dbSetTerrainScale ( 2, 3000.0f, 10.0f, 3000.0f );
dbSetTerrainLight ( 2, 1.0f, -0.25f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f );
dbSetTerrainTiling ( 2, 1 );
dbSetTerrainTexture ( 2, 4, 5 );
dbBuildTerrain ( 2 );
dbSetObjectFog ( 2, 1 );
//dbSetTerrainTiling ( 2, 8 );
//dbSetTerrainSplit ( 2, 4 );//has no effect on FPS
The 5th line down is where I did all my testing.
I hope a solution can be found for this, because I require good fog control for the aircraft sim I am trying to make and visability has to be well over 100Km and the terrain has to be around 3000Km x 3000Km.
Blending fog at a long distance into the sky color works very well.