POV-Ray : Newsgroups : povray.general : color_map is "dirty" on a plane that goes thru the origin : Re: color_map is "dirty" on a plane that goes thru the origin Server Time
31 Jul 2024 12:16:18 EDT (-0400)
  Re: color_map is "dirty" on a plane that goes thru the origin  
From: Jim Charter
Date: 12 Mar 2007 00:56:58
Message: <45f4ebaa$1@news.povray.org>
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

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