POV-Ray : Newsgroups : povray.unofficial.patches : Hot Asphalt (variable ior) : Re: Hot Asphalt (variable ior) Server Time
2 Sep 2024 06:14:26 EDT (-0400)
  Re: Hot Asphalt (variable ior)  
From: Peter Popov
Date: 29 Apr 2000 18:16:31
Message: <3tmmgsojf56amftd6uv3h96drr7ilrk3b1@4ax.com>
On 29 Apr 2000 17:26:03 -0400, ron### [at] povrayorg (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] usanet
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.