Hello Jarmo,
just now as you have been looking closer into the atmospheric rendering, may I suggest you may take a look at the stunning work of Eric Bruneton? In my humble opinion, he's created the most realistic looking real-time atmospheric rendering I have ever seen:
http://www-evasion.imag.fr/Membres/Eric.Bruneton/
Scroll down to the chapter "Atmosphere" and click on the images and the links Publication, Video and Code, with the last one being especially interesting for you.
Also see this document of Eric Bruneton:
http://www-ljk.imag.fr/Publications....PUBLI_Article@11e7cdda2f7_f64b69/article.pdf
For some absolutely awesome views, watch the videos Eric Bruneton posted on youtube (9 in total):
YouTube - Real-time planet rendering
I hope this can be helpful for improving the atmospheric effects in your D3D9 Client?