POV-Ray : Newsgroups : povray.general : long syntax : Re: long syntax Server Time
5 Aug 2024 22:17:46 EDT (-0400)
  Re: long syntax  
From: Rafal 'Raf256' Maj
Date: 23 Jul 2002 22:52:37
Message: <Xns925531073B081raf256com@204.213.191.226>
Christopher James Huff <chr### [at] maccom> wrote in
news:chr### [at] netplexaussieorg 

> 
> #macro Fin(Dif, Amb, Spec, Rough, Refl)
>     finish {
>         diffuse Dif
>         ambient Amb
>         specular Spec
>         roughness Rough
>         reflection Refl
>     }
> #end

> My point is that there is already a feature that can be used to do
> what you want, and the proposed feature has so many drawbacks that it
> is very unlikely you will find anyone willing to waste the time to
> implement it. 

finish { ambient 0 }
finish { ambient 0 diffuse .3 reflection { .2 .4 } metallic .7 brilliance 
1.2 }

will need 2 macros to make any sens, or one macro to be used like :
Fin(0, -1,-1,-1,-1,-1,-1); 
where -1 means "default value"


ok, It was just a suggestion. Meany peoples says "what, I had to write 10 
pages to get a simpel image ? no - thanks" and it's not easy to convince 
them... well - theirs problem ;)

-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

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