|
![](/i/fill.gif) |
talk.do.stop wrote:
> If I try the following scene, the top of the cylinder will be a noisy
> mixture of the two colors in the color_map.
>
> #declare height = 0;
> cylinder {
> <0,height,0> <0,-1.2,0> 2
> texture { pigment {
> gradient -y
> color_map {
> [0 color rgb <1,1,0>]
> [1 color rgb <0,0,1>]
> }
> scale <1, 2, 1>
> }}
> }
> camera { look_at <0,0,0> location 3 }
> light_source { 3 color rgb 1}
>
>
> If however the height is changed to 0.001, the color is fine. I am not
> quite sure if it's a bug, or I just overlooked something, but I wouldn't
> expect this behavior.
>
>
>
The slope wave of the gradient is breaking just at the top of the
cylinder. Your workaround it fine or you could also expand the scale of
the pigment slightly and translate it.
Post a reply to this message
|
![](/i/fill.gif) |