POV-Ray : Newsgroups : povray.general : bug or trivial mistake ? : bug or trivial mistake ? Server Time
7 Aug 2024 23:24:33 EDT (-0400)
  bug or trivial mistake ?  
From: Wlodzimierz ABX Skiba
Date: 26 Apr 2001 08:17:14
Message: <3ae811ca@news.povray.org>
What is wrong with below syntax ?

#declare P=.5;
#declare C=texture{pigment{color rgb 1}finish{ambient.5}}
#declare B=texture{pigment{color rgb 0}finish{ambient 0}}
#declare A=texture{average texture_map{[(1-P) C][P B]}}
texture{gradient y texture_map{[0 B][.5 A][1 C]}}

it causes error: ] expected but undeclared identifier 'A' found instead.

noticed in POV-Ray 3.1g and MegaPOV 0.7

ABX
--
#local A="000114120001121034130151142153134064180060195"#local B=0;#macro G()
#declare B=B+1;val(substr(A,B,1))#end#local S=seed(1);light_source{10,1}blob{
threshold.6#local U=z;#local Y=0;#while(Y<15)#local E=G()*.7+.1e-3;#local V=<
3.5-G(),G()-2.5,-1>;#local X=0;#while(X<1)sphere{<12*X+rand(S)-6,Y+rand(S)-5,
-1>1,1}sphere{U+X*(V-U)+rand(S)E,.3}#local X=X+.01;#end#local U=V;#local Y=Y+
1;#end texture{pigment{rgb 1}normal{agate}}}camera{location z*8look_at 0}


Post a reply to this message

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