POV-Ray : Newsgroups : povray.binaries.images : 11,000 Plastic Mouse Wheels (800 x 600, 293 KB) : Re: 11,000 Plastic Mouse Wheels (800 x 600, 293 KB) Server Time
17 Aug 2024 04:09:36 EDT (-0400)
  Re: 11,000 Plastic Mouse Wheels (800 x 600, 293 KB)  
From: Yadgar
Date: 9 Nov 2001 19:19:53
Message: <3BEC7965.BBB7E6E8@ndh.net>
JRG schrieb:

> Yadgar wrote:
> >Strangely,
> > there is a concentration of objects near the origin (camera location is
> > <0, 0.1, -0.4>, looking at <0, 0, 0>), though there are no quadratic
> > terms containing the random variable...
>
> If you're placing the wheels with the *orbit technique* (i.e. translate
> x*radius*rand() rotate 360*rand()*y) you have to expect this, since every
> radius is equally probable so the smaller the radius the smaller the circle
> you put your objects on.
>
> --
> Jonathan.

No, my method is:

r=seed(3482) // seed values only examples!
a=seed(2321)

radius=rand(r)*2
ang=rand(a)*360

...

translate <radius*sin(ang*(pi/180)), 0, radius*cos(ang*(pi/180))>

...


Post a reply to this message

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