POV-Ray : Newsgroups : povray.general : Help with a spherical container : Re: Help with a spherical container Server Time
4 Aug 2024 02:19:14 EDT (-0400)
  Re: Help with a spherical container  
From: Warp
Date: 5 Nov 2003 05:24:48
Message: <3fa8cff0@news.povray.org>
Tim Nikias v2.0 <tim.nikias (@) nolights.de> wrote:
> #declare
> Random_Lightsource=vnormalize(<rand(Seed)*2-1,rand(Seed)*2-1,rand(Seed)*2-1>
> )*rand(Seed)*5;

  Are you sure this produces an even distribution?-)

  By the way, you can do: <rand(Seed),rand(Seed),rand(Seed)>*2-1

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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