There is a whole class of astronomical objects for which radiation is not only a probe of the physical state, but is to fact an important energy balance agent. In these objects, radiative transfer plays a crucial role. Typical examples of such a situation are stellar atmospheres, interstellar matter and various structures within, and accretion disks, both around stellar mass degenerate objects (cataclysmic variables), and around supermassive black holes (quasars).
We concentrate on two objects - stellar atmospheres and quasar accretion disks, and approach. We will give a brief overview of recent progress in their modeling. On the stellar atmosphere side, very sophisticated non-LTE models including millions of lines are now being constructed. It is shown that they provide and excellent match to high-quality ground- and space-based spectra. In quasar modeling, we have constructed a grid of non-LTE disk models for a wide range of parameters, and begun a study of analysing observed data using the new models.