is the object in the background transparent too?

transparent objects can't use the z-buffer (it's described in the faq forum).