|
![](/i/fill.gif) |
On 29 Apr 2000 17:26:03 -0400, ron### [at] povray org (Ron Parker)
wrote:
>Speaking of the air gaps problem, I posted something over on cgrr about
>that and only got a response from one person. There is no correct way
>to do the junction of two objects with different IORs.
Instruct the render engine that this is the case (group the two
objects in some way). When a ray leaves the first object and hits air,
it will be split in two rays. One will be refracted and one will not.
First the non-refracted ray will be checked against the second object.
if the distance to the intersection is smaller than epsilon, the air
gap is ignored (as is the other ray), i.e. the ray tracing continues
from that intersection point and the ray direction is determined from
the well-known formula of the two iors. If this test fails then the
refracted ray will be the one to be traced further.
Will this work?
Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] usa net
TAG e-mail : pet### [at] tag povray org
Post a reply to this message
|
![](/i/fill.gif) |