Dust obscuration studies along quasar sight-lines using simulated galaxies