Thanks for the feedback Miles. This makes for many assumptions as one
would
have to, if object are moving, say an ice cube in the water, have dynamic
materials for the glass:
glass air
glass water
glass ice
depending on where a ray is.
Today I use a list of medium being traversed but I can't seem to be able
to
exit a material directly into another one..
- MC
"Miles Bader" <miles@[EMAIL PROTECTED]
> wrote in message
news:87lk88wwil.fsf@[EMAIL PROTECTED]
> "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


|