POV-Ray : Newsgroups : povray.unix : gradient problem vers. 3.1g : Re: gradient problem vers. 3.1g Server Time
28 Jul 2024 12:32:40 EDT (-0400)
  Re: gradient problem vers. 3.1g  
From: Ron Parker
Date: 20 Sep 2001 10:36:07
Message: <slrn9qjvmo.c0u.ron.parker@fwi.com>
On Wed, 19 Sep 2001 19:23:43 -0400, Lothar Esser wrote:
>Hi,
>
>   I have encountered a problem with gradient in a pigment statement
>with color_map.
>There has been some discussion in povray.newusers so I try to make it
>short.
>In povray version 3.1g using all unix sytems at my disposal ( irix, osf,
>linux ) the same error occurs.
>The gradient function does not work properly. Is this a know bug ?
>It seems to work in povray 3.5 on windows(?). ( Thanks to Trevor Quayle

Actually, it was a problem in anything before version 3.5, not specific
to Unix or anything else.  We've never figured out exactly what whoever 
wrote that code was thinking, but any vector other than x, y, or z would
not have given you correct results.

--
#macro R(L P)sphere{L __}cylinder{L P __}#end#macro P(_1)union{R(z+_ z)R(-z _-z)
R(_-z*3_+z)torus{1__ clipped_by{plane{_ 0}}}translate z+_1}#end#macro S(_)9-(_1-
_)*(_1-_)#end#macro Z(_1 _ __)union{P(_)P(-_)R(y-z-1_)translate.1*_1-y*8pigment{
rgb<S(7)S(5)S(3)>}}#if(_1)Z(_1-__,_,__)#end#end Z(10x*-2,.2)camera{rotate x*90}


Post a reply to this message

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