All,
Whenever a refracted ray is created, one must know the index of refraction
(a.k.a refractive index) of both the medium being left and the one being
entered. My question is: how can one know when a ray exists a object
what
the index of refraction of the new medium is? Indeed, to know where the
ray's heading to, you need to calculate the refraction vector and to
calculate it you need to know where you go...
For example:
a) in an empty glass, when the ray enters the glass we've got "air to
glass"
then when it exists "glass to air"
b) in an half-full glass, the bottom half would be "air to glass" then
"glass to water" while the upper halg would be "air to glass" then "glass
to
air"
Any way to work that problem out?
Best regards,
mc.


|