|
|
On Wed, 15 Nov 2000 12:00:24 -0500, Rick Mabry wrote:
>Thanks for the macro suggestions. They both worked great for color pigments.
>I am trying to modify them to allow for image_maps --- at present they do
>not seem to accomodate these (due to stretching and such).
In that case, try the modification below. Make your image maps fit in the
square from <0,0,0> to <1,1,0>. (If you do that and make them tiled, you can
remove the translates in the macro below as well.)
>> #macro checker_pigment (Pigment1, Pigment2, Pigment3)
>> gradient x pigment_map {
>> [1/3 Pigment1] [1/3 Pigment2] [2/3 Pigment2] [2/3 Pigment3]}
Replace this line with
[1/3 Pigment1 scale <1/3,1,1>]
[1/3 Pigment2 translate x scale <1/3,1,1>]
[2/3 Pigment2 translate x scale <1/3,1,1>]
[2/3 Pigment3 translate 2*x scale <1/3,1,1>]
}
>> warp {repeat x}
>> warp {repeat y offset 1/3*x}
>> scale <3,1,1>
>> #end
--
Ron Parker http://www2.fwi.com/~parkerr/traces.html
My opinions. Mine. Not anyone else's.
Post a reply to this message
|
|