POV-Ray : Newsgroups : povray.general : Help with a spherical container : Re: Help with a spherical container Server Time
4 Nov 2024 17:37:39 EST (-0500)
  Re: Help with a spherical container  
From: Christopher James Huff
Date: 4 Nov 2003 20:40:55
Message: <cjameshuff-618341.20403704112003@netplex.aussie.org>
In article <3fa850c0@news.povray.org>, Warp <war### [at] tagpovrayorg> 
wrote:

> #declare LightLocation = 10*<rand(Seed), rand(Seed), rand(Seed)>-5;
> #while(vlength(LightLocation) > 5)
>   #declare LightLocation = 10*<rand(Seed), rand(Seed), rand(Seed)>-5;
> #end

Or you could just use VRand_In_Sphere() in rand.inc.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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