|
![](/i/fill.gif) |
Charles C wrote:
> This is a height_field (multiple actually, tiled, but not tile-able)
> made from a nine* megapixel .png made of course from an orthogonal view
> of crackle pattern pigment on a plane. The pigment used for the
> height_field is a *different* .png which is basically the original after
> a few bucket-fills in GIMP with different colors to different 'stones.'
>
> I could keep-it-in-POV-Ray (no image based height_fields or image_maps)
> if I knew how to give individual stones different colors using crackle.
> Unfortunately it looks like there's a choice between patterns that can
> give borders to cells, or patterns which can give different colors to
> different cells.
It's simple: Use the solid cell pattern as the coloring for the centers
of the regions in the mortared cell pattern.
pigment { crackle
pigment_map {
[.1 rgb .75]
[.1 crackle solid
color_map { [0 rgb <.9,.8,.7>][1 rgb <.7,.6,.5>] }
]
}
// scale, rotate, and transform to taste
}
If you base the height_field off of a pigment instead of an image file,
then you can use a suitable solid pattern to color the stones. Then use
another pigment_based height_field to generate the mortar.
Hope this helps,
John
Post a reply to this message
|
![](/i/fill.gif) |