POV-Ray : Newsgroups : povray.general : Order of texture and pigment matter? : Re: Order of texture and pigment matter? Server Time
30 Jul 2024 22:25:53 EDT (-0400)
  Re: Order of texture and pigment matter?  
From: Zeger Knaepen
Date: 12 May 2008 19:30:51
Message: <4828d32b$1@news.povray.org>
"wealthychef" <nomail@nomail> wrote in message 
news:web.4828c29b90917db34a296dd40@news.povray.org...
>I don't understand something.  When I use the following code:
>
> #declare testfinish = finish {ambient 0.7}
>
> triangle {
>    v0 v1 v2
>    texture {
>       pignment { color Red }
>      testfinish
>    }
> }
>
> I get this error:
> File: jaime.inc  Line: 94
> File Context (5 lines):
>    v0 v1 v2
>    texture {
>      pigment { color Red }
>      testfinish
> Parse Error: No matching } in 'texture', finish identifier found instead
>
> But if I just switch the order of pigment and testfinish, as follows, the 
> scene
> renders as I expect:
>
> triangle {
>    v0 v1 v2
>    texture {
>      testfinish
>      pigment { color Red }
>        }
> }

actually I wouldn't have expected that to work, unless testfinish is 
considered a complete texture by POV-Ray.

cu!
-- 
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x)            // ZK http://www.povplace.com


Post a reply to this message

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