Modelling the night sky