|
|
Thanks, I've always wanted to do that but haven't.
I fooled around with three dimensional matrices
but they didn't work very well.
I think when your Grid macro is used it should be:
Grid( pigment{rgbf 1} , pigment{rgb 0}, 0.1)
adding that one letter makes a big difference :-)
(and I don't mean correcting the typo } ;-)
Harold
news:h2on4uchrebp72ojaeogltpd00vuv2ll2b@4ax.com...
> What about something like:
>
> #macro Grid(Pig1,Pig2,Size)
> #local Pig3=pigment{
> gradient z
> pigment_map{
> [Size/2 Pig2]
> [Size/2 Pig1]
> [1-Size/2 Pig1]
> [1-Size/2 Pig2]
> }
> };
> plane{
> y, -1
> pigment{
> gradient x
> pigment_map{
> [Size/2 Pig2]
> [Size/2 Pig3]
> [1-Size/2 Pig3]
> [1-Size/2 Pig2]
> }
> }
> }
> #end
>
> Grid( pigment{rgb 1} , pigment{rgb 0}, 0.1}
>
Post a reply to this message
|
|