Fog in 3D scene

How can I create fog in 3D scene? to be precise, I need a nebula in space. Any examples?