POV-Ray : Newsgroups : povray.animations : HELP! problem with CSG syntax : HELP! problem with CSG syntax Server Time
18 Apr 2024 12:43:08 EDT (-0400)
  HELP! problem with CSG syntax  
From: Constantin
Date: 11 May 2020 22:15:00
Message: <web.5eba04fc45e5c9e8ecfb76150@news.povray.org>
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

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