POV-Ray : Newsgroups : povray.off-topic : Haskell vs Java: Building a ray tracer : Re: Haskell vs Java: Building a ray tracer Server Time
29 Jul 2024 08:20:20 EDT (-0400)
  Re: Haskell vs Java: Building a ray tracer  
From: Francois Labreque
Date: 3 Jul 2012 09:35:03
Message: <4ff2f507@news.povray.org>

>> Assuming your sphere is to the "right" of your ray starting point.
>
> No assumption.
>
> The result of this equation is the distance along the ray that you need
> to travel to get to the intersection. Therefore, the lowest solution is
> guaranteed to be the one you want. (Unless the camera is /inside/ the
> sphere, which won't work for several other reasons besides this one.)

No assumption, except for this one, that one, and these other ones, too...

:P

-- 
/*Francois Labreque*/#local a=x+y;#local b=x+a;#local c=a+b;#macro P(F//
/*    flabreque    */L)polygon{5,F,F+z,L+z,L,F pigment{rgb 9}}#end union
/*        @        */{P(0,a)P(a,b)P(b,c)P(2*a,2*b)P(2*b,b+c)P(b+c,<2,3>)
/*   gmail.com     */}camera{orthographic location<6,1.25,-6>look_at a }


Post a reply to this message

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