POV-Ray : Newsgroups : povray.off-topic : Ray tracers and transformations : Re: Ray tracers Server Time
10 Oct 2024 23:19:34 EDT (-0400)
  Re: Ray tracers  
From: Invisible
Date: 14 Mar 2008 04:57:00
Message: <47da4bec@news.povray.org>
Severi Salminen wrote:

> 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.

It's used for CSG. (E.g., if you "difference" the sphere against 
something else, the "back" intersection might actually be where the 
solid surface begins.)

[Mutters something about Haskell and lazy evaluation...]

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

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