|
![](/i/fill.gif) |
Steve <ste### [at] zeropps uklinux net> wrote:
: #if(clock>0.5)
: rotate y*clock*135
: rotate x*clock*270
: #end
Note that when you do this to "start something at a certain clock value",
you might want to use a "subclock" value which itself goes from 0 to 1
inside the subrange although the main clock value has other values.
In this example the clock will "start" from 0.5 inside the block, which
is often not handy. You can do something like this:
#if(clock>0.5)
#local subclock = (clock-.5)*2;
...
#end
Of course using some of the clock macros out there would be easier. See
for example:
http://www.geocities.com/ccolefax/clockmod.html
--
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}// - Warp -
Post a reply to this message
|
![](/i/fill.gif) |