Hello Wizard.

This is a must topic for you:

http://www.gamedev.net/reference/art...rticle1604.asp

If you still have some questions, feel free to ask