That isnt really shadows, thats just basic lighting.
Mearly creating a light will do that.
If you want shadows, you can either use the slow, direct-x based stencil method (DBP only)
....or the fast but less accurate "black light" method.
Basicaly, if you want a ball to have a shadow, you have a black spotlight pointing at it so it casts a negative light on the ground
Works quite well but you gota get the angle and such right.
Also, the "ground" has to be a well subdivided mesh for it to look nice.
"The man who says it cannot be done is generally interrupted by someone doing it." ~ Elbert Hubbard