POV-Ray : Newsgroups : povray.off-topic : Ray tracers and transformations : Re: Ray tracers Server Time
10 Oct 2024 23:17:22 EDT (-0400)
  Re: Ray tracers  
From: Orchid XP v7
Date: 15 Mar 2008 07:19:45
Message: <47dbbee1$1@news.povray.org>
Severi Salminen wrote:
> Invisible wrote:
> 
>> 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.)
> 
> 
> Hmm. I still don't get it. Why should I ever need to trace the ray in
> the "wrong direction"?
> 
> The ray starts at camera and goes forward. If anything interesting is
> found, it is in front of the ray, right? And the only exception is if
> the camera is inside an object. But even then: shouldn't it be enough to
> trace forward. Please enlighten me :)

You will never need an intersection from *behind* the camera.

However, a ray typically intersects a sphere in two places. POV-Ray 
generates both points of intersection because you might need them both. 
(E.g., if the object is transparent, you'll want to trace a ray out of 
it. If the object is involved in CSG with other objects, the "back" 
surface might actually be the first visible surface. etc.)

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