Hi.
I am busy writing a directx renderer for my engine that up until now was opengl only. Here is a screenshot rendered in opengl that demonstrates what Im trying to achieve.

Here is the same scene rendered in directx

Looking at the far away terrain the mipmapping in the directx version seems a bit of (well I think its the mipmapping). You can clearly see some ugly patterns forming the further you go.
The only only difference between the 2 (that i can think of) is the way the mip maps are generated. In the opengl one the mipmaps are created using gluBuild2DMipmaps. In the direcx one I generate the mipmaps myself and i simply average the nearest 4 pixels together when downscaling. So my first thought was that gluBuild2DMipmaps uses a different algorithm to downscale the image but I cant seem to find more information on it. Maybe the problem is something else entirely? Either way any help will appreciated.
Thnx in Advance!