POV-Ray : Newsgroups : povray.off-topic : Ray tracers and transformations : Re: Ray tracers Server Time
10 Oct 2024 23:19:13 EDT (-0400)
  Re: Ray tracers  
From: Severi Salminen
Date: 14 Mar 2008 04:54:25
Message: <47da4b51$1@news.povray.org>
Slime wrote:
> Is this what POV-Ray actually uses for the intersection of a ray and a 
> sphere? I just spent half an hour working out both the geometrical 
> interpretation of this and its equivalence to the result of the quadratic 
> equation with the coefficients that Andrew posted, and I'm really impressed 
> at how simple it is. And annoyed at the fact that I never could have come up 
> with it myself =)

Yeah, Pov uses the exact same method. It is very simple and fast method.
Pov also has one additional check, which I'm not sure is worth it. POV
also returns both hits always. I only return the hit in front of the
ray. I have no use for the other.


Post a reply to this message

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