POV-Ray : Newsgroups : povray.binaries.images : Antony Gormley simulation : Re: Antony Gormley simulation Server Time
13 Jul 2025 23:55:17 EDT (-0400)
  Re: Antony Gormley simulation  
From: Thomas de Groot
Date: 5 Dec 2017 03:05:19
Message: <5a26533f$1@news.povray.org>
On 4-12-2017 14:20, Bald Eagle wrote:
> Thomas de Groot <tho### [at] degrootorg> wrote:
> 
> 
>> Finally, as first approximation, I found it more expedient to randomise
>> the points in the array when reading them.
> 
> Hmmm.
> Without seeing how you're going about that, I'm not sure I understand the
> advantage of that over selecting a (pseudo)random point in an ordered array.
> 
> I do think that one thing that could be done is add a bit of randomization to
> the point itself - since they are all regularly spaced in a cubic grid.
> ("cubic" is just easier to say/write than "rectangular solid")
> 
> So, perhaps define half the grid spacing as a multiplier (M), and randomly
> translate along x, y, and z by rand_between (-M and M).
> Add a rotation if you're using an asymmetric filler.
> 
> Or draw a cylinder between the original point and a randomly translated or
> chosen outside point.
> 
> 
> It's certainly looking more evenly filled - which I think is what you wanted.
> 

Sorry, indeed. I use the following code:

union {
   #while (defined(ObjLocs))
     #read (ObjLocs, Locs)
     sphere {0, 0.01
       #local Locs = Locs*RRand(0.99, 1.01, Stream0);
       translate Locs
       pigment {Red}
     }
   #end
   rotate 20*y
}

As you can have noticed from my answer to Clipka, I am really puzzled by 
the 'spikes'...

-- 
Thomas


Post a reply to this message

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