POV-Ray : Newsgroups : povray.general : Help with a spherical container : Re: Help with a spherical container Server Time
3 Aug 2024 20:19:42 EDT (-0400)
  Re: Help with a spherical container  
From: Wesley Parker
Date: 4 Nov 2003 21:11:20
Message: <3fa85c48$1@news.povray.org>
nah, i cant resist the urge to see how long it takes.

20 minutes and counting...

"Wesley Parker" <wes### [at] verizonnet> wrote in message
news:3fa85b32$1@news.povray.org...
> this is kinda funny, i changed the amount of lights im going to use from
25
> to 250 (and increased the radius to 500) and its been parsing for the last
> 15 minutes o.O
>
> im just going to go ahead and stop it now and try the function in the
> standard include.
> "Warp" <war### [at] tagpovrayorg> wrote in message
> news:3fa850c0@news.povray.org...
> > Wesley Parker <wes### [at] verizonnet> wrote:
> > > Hey, i had an idea for something pretty interesting but I am having
> problems
> > > implementing it.  What i did was create a sphere with object media at
> the
> > > origin with a radius of five. That part was easy enough, but placing
the
> > > lights is troubling me. I need the placement to be random, but at the
> same
> > > time the lights need to be on the inside of the sphere.
> >
> > #declare Seed = seed(0);
> >
> > #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
> >
> >   After the loop ends you will have a random point inside the sphere
> > of radius 5 in 'LightLocation'.
> >
> > -- 
> > #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.