POV-Ray : Newsgroups : povray.binaries.images : Algorithmus Wanted : Re: Algorithmus Wanted Server Time
19 Apr 2024 00:53:12 EDT (-0400)
  Re: Algorithmus Wanted  
From: Mike Horvath
Date: 18 Feb 2018 23:18:27
Message: <5a8a5013$1@news.povray.org>
On 2/18/2018 10:38 PM, Sven Littkowski wrote:
>     #declare MyX        = MyX+rand(MyRandomer)*04*Negative;
>     #declare MyY        = MyY+rand(MyRandomer)*01*Negative;
>     #declare MyZ        = MyZ+rand(MyRandomer)*00*Negative;

Instead of the above, I think you should use a radius and rotation by an 
angle.


#declare MyAngle    = rand(MyRandomer)*2*pi;
#declare MyX        = MyX+MyRadius*cos(MyAngle);
#declare MyY        = MyY+MyRadius*sin(MyAngle);
#declare MyZ        = MyZ;


Or something similar.


Mike


Post a reply to this message

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