POV-Ray : Newsgroups : povray.general : Random solid colors for the hexagon block pigment pattern : Re: Random solid colors for the hexagon block pigment pattern Server Time
1 Aug 2024 10:19:13 EDT (-0400)
  Re: Random solid colors for the hexagon block pigment pattern  
From: Jim Charter
Date: 17 Nov 2005 16:15:40
Message: <437cf2fc$1@news.povray.org>
Dave Matthews wrote:
> John VanSickle <evi### [at] hotmailcom> wrote:
> 
>>Yes.  Here's an entire POV file to demonstrate:
>>
>>Regards,
>>John
> 
> 
> OK, I see THAT it works (and by adding color_maps you can get all kinds of
> cool stuff); I'm still trying to puzzle out WHY it works.
> 
>
Well you get that the cells pattern gives you random stepped colors 
based on the map you feed it, right?  So it is an easy way to have a) 
random values, b) stepped values, meaning a cell is all one color c) a 
regular grid pattern.  (As someone else pointed out, you can get b), the 
stepped effect, from other patterns too by manipulating the color_map)

John is nesting the cells pattern, as it were, within the hexagon 
pattern.  It's like the hexagon pattern is a sort of mask with the cells 
pattern forming the color behind. I posted a similar thing here to get 
random brick textures. His method for scaling and warping the cells 
pattern to the hexagon pattern is typically ingenious however, and 
opaque to me, naturally.


Post a reply to this message

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