POV-Ray : Newsgroups : povray.binaries.images : multiple sky spheres : Re: multiple sky spheres Server Time
30 Jul 2024 10:24:36 EDT (-0400)
  Re: multiple sky spheres  
From: Warp
Date: 14 Dec 2011 09:57:30
Message: <4ee8b95a@news.povray.org>
On 12/12/2011 11:21 PM, clipka wrote:
> Yup. Except of course that the sky sphere has an infinite radius, while
> normal spheres have a finite one.

   Actually, technically speaking, a sky_sphere is a sphere of radius 1
which is centered at the origin of the current ray. It's just that it's 
evaluated only if the ray doesn't hit anything (thus making it only 
appear on the parts of the image where the nothingness of the background 
would otherwise be visible).

   A sky_sphere is also faster than a regular sphere because no actual 
ray-sphere intersection calculations are needed. (The color is taken 
from the sky_sphere just using the direction of the ray using simple math.)


Post a reply to this message

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