|
|
Well, firstly your vector is commented out, there's a // before the <
But assuming that's just a typo when you posted the message, I think this is
a problem with pov's bicubic patch syntax. I had a similar thing when I was
trying to write some code to generate triangles. It seems pov doesn't like
evaluating variables for control points like that. The only way round it I
found was to write the values out to a file then #include it. So hopefully
I'm missing something and someone here can come up with a better solution.
Of course, your problem might be something else entirely...
Tek
http://evilsuperbrain.com
"Yadgar" <yaz### [at] gmxde> wrote in message news:436### [at] gmxde...
> High!
>
> In between, I'm trying to program a macro for generating joined bezier
> patches from heightfield bitmaps... but even reading out the pixel data
> from a small test image fails!
>
> bicubic_patch
> {
> type 0
> #declare a=0;
> #while (a<4)
> #declare b=0;
> #while (b<4)
> // <5+b*10, eval_pigment(patch, <1/8+b/4, 7/8-a/4,
> 0>).red*50+eval_pigment(patch, <1/8+b/4, 7/8-a/4, 0>).green*(50/256),
> 35-a*10>
> #warning str(eval_pigment(patch, <1/8+b/4, 7/8-a/4, 0>.red, 0, 3);
> #if (b<3 | a<3)
> ,
> #end
> #declare b=b+1;
> #end
> #declare a=a+1;
> #end
> texture
> {
> pigment { color rgb <1, 0.5, 0> }
> finish { ambient 0.2 diffuse 1 brilliance 0.4 }
> }
> }
>
> Whenever I try to run this, I get the message "')' expected, float
> function 'float constant' found instead", with the #warning... line and
> line 630 in functions.inc highlighted!
>
> See you in Khyberspace!
>
> Yadgar
>
Post a reply to this message
|
|