Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > Raytracing rendering software > Re: Refracted r...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 7 Topic 558 of 588
Post > Topic >>

Re: Refracted ray

by Miles Bader <miles@[EMAIL PROTECTED] > Dec 6, 2007 at 08:29 AM

"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
 




 7 Posts in Topic:
Refracted ray
"mc" <mc_roa  2007-12-05 18:15:24 
Re: Refracted ray
Miles Bader <miles@[EM  2007-12-06 08:29:38 
Re: Refracted ray
"mc" <mc_roa  2007-12-05 16:45:41 
Re: Refracted ray
Hn <Hn@[EMAIL PROTECTE  2007-12-06 03:10:35 
Re: Refracted ray
Miles Bader <miles.bad  2007-12-06 13:31:01 
Re: Refracted ray
Miles Bader <miles.bad  2007-12-06 13:42:06 
Re: Refracted ray
Hn <Hn@[EMAIL PROTECTE  2007-12-07 02:46:46 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 19:29:05 CST 2008.