"Warp" <war### [at] tagpovrayorg> wrote in message
news:44002edb@news.povray.org...
> Nekar Xenos <go_### [at] yahoocom> wrote:
>> > If there is an object inside that sphere, how would you calculate
>> > where
>> > this curved line intersects that object?
>
>> How about taking the ray on a circular path in one direction as the ior
>> goes
>> up and changing the direction when the ior goes down resulting in an
>> s-shaped path.
>
> What? Did you even understand my question?
>
> --
> - Warp
I meant to replace my intitial suggestion with the second one. Is it not
possible to test intersection of a circle with an object? Please excuse me,
but I (obviosly)don't know how a raytracer is programmed. How is
intersection of a straight ray done? I was thinking of just replacing the
formula for the straight ray with the formula of a circle.
--
-Nekar Xenos-
----------------------------------------
"The truth is out there..."
Post a reply to this message
|