Hi!
I have a problem. The COG here is made to turn 24 surfaces transparent. Now the surfaces I've selected are not adjoining surfaces, which will result in semi-HOM (motion blur). But it ain't happeneing! Why?
/Edward
I have a problem. The COG here is made to turn 24 surfaces transparent. Now the surfaces I've selected are not adjoining surfaces, which will result in semi-HOM (motion blur). But it ain't happeneing! Why?
Code:
# Motion Blur!
#
# By Edward
symbols
message startup
message user0
surface m0
surface m1
surface m2
surface m3
surface m4
surface m5
surface m6
surface m7
surface m8
surface m9
surface m10
surface m11
surface m12
surface m13
surface m14
surface m15
surface m16
surface m17
surface m18
surface m19
surface m20
surface m21
surface m22
surface m23
int i=0 local
int z local
end
#
code
startup:
for(z=0; z<24; z=z+1)
{
ClearAdjoinFlags(m0[z],0x4);
}
return;
user0:
If(i==0)
{
i=1;
for(z=0; z<24; z=z+1)
{
SetAdjoinFlags(m0[z],0x2);
}
print("Blur");
}
else
{
i=0;
for(z=0; z<24; z=z+1)
{
ClearAdjoinFlags(m0[z],0x2);
}
print("UnBlur");
}
return;
end/Edward