Hmm, i am interest to know what level is this question at? Seems
like need a few concepts to answer this question.
University or A levels? Is it asked in a Physics or
Chemistry?
From what i know (I didn't take chemistry), like everything
else, glass have electrons orbiting the nuclues, and only certain
orbits are allowed for these electrons.
Each of these orbits have different energy levels, in order for
the electrons to jump to a different orbit, there must be a definite amount of
energy.
The energy to bring these electrons to another orbit can come
from light. However, we have to view light as a particle called
photons instead of waves.
For glass, the photon (of light at visible frequencies) does not
have enough energy to bring these electrons in the glass to another
obit. Thus, the photon just pass through the electrons instead of
being absorbed. If the photons have enough energy, they will be
absorbed by the electrons.
Light of lower wavelengths (than visible light) should have more
energy due to the equation E= hc/wavelength; where h is plancks
constant, c is speed of light.
When photon just pass through glass, it is considered
transmission of light.
Thus light just pass through without getting reflected.
As for our glass cup, it could be due to glass having
higher refractive index, thus light going through it will bend
towards normal, and the perceived image is different, thus we know
there is something there.