"mc" <mc_roam@[EMAIL PROTECTED]
> writes:
> 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?
I don't have any great elegant solution, but one way is simply to allow
transparent surfaces to have two indices of refraction, one for the
"frontside" and one for the "backside". Often the "frontside" IOR would
be 1 of course (or some special value indicating "default", in case you
want to handle embedded objects more flexibly)..
With such a representation, you'd need to use different materials for
the part of the glass surface comprising the glass-liquid interface than
for the part comprising the glass-air interface, but this doesn't seem
too hard in many cases.
-Miles
--
"Suppose we've chosen the wrong god. Every time we go to church we're
just making him madder and madder." -- Homer Simpson


|