|
|
I consider myself an advanced POV user but this one is mystifies me. I am trying
a simple model of a butterfly wing movement in a sort (12 frames, 3/4 sec)
animation. This is my code:
//rapid downstroke
#declare startclock=0;
#declare endclock =4;
#declare localclock=clock-startclock;
#if(clock>startclock & clock<=endclock) union { { Rightwing rotate
<0,0,60-14*localclock>} {Leftwing rotate<0,0,-(60-14*localclock)>}
rotate<-30,-30,0> translate <30,-(55-localclock), 50> } #end
//slower return up
#declare startclock=endclock;
#declare endcolck=startclock+8;
#declare localclock=clock-startclock;
#if( clock>startclock & clock <=endclock) union { { Rightwing rotate<
0,0,7.5*localclock>} {Leftwing rotate<0,0,-7.5*localclock>} rotate<-20,-35,0>
translate <10,-(54+0.5*localclock), 100> } #end
Povray refuses to accept the first #if statement: "No matching } in 'union', {
found instead" What is wrong with the union syntax?
More puzzling, if I comment out the first #if statement, it accepts the second
one and proceeds to rendering, even though the union syntax is EXACTLY the same.
What am I doing wrong?
Thanks for any help
Constantin
Post a reply to this message
|
|