home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 February
/
Chip_2001-02_cd1.bin
/
bonus
/
demos
/
CS
/
pin
/
pinokijo.plg
< prev
next >
Wrap
Text File
|
2000-05-05
|
23KB
|
671 lines
###########################################################
#### pinokijo / movsd -> sagvan script by redox^movsd ####
###########################################################
#
############ const.plg ############
const.plg:script{
#
# Std. constants database by redox^movsd
#
sinus=constant(k=1);
square=constant(k=2);
saw=constant(k=0);
timer=constant(k=3);
clock=constant(k=4);
solid=constant(k=0);
rgb=constant(k=1);
opened=constant(k=0);
closed=constant(k=1);
copy=constant(k=2);
add=constant(k=3);
alpha=constant(k=6);
invert=constant(k=12);
stream=constant(k=0);
bump=constant(k=8);
left=constant(k=0);
right=constant(k=1);
center=constant(k=2);
texture=constant(k=1);
transluency=constant(k=4);
transparency=constant(k=5);
translusparency=constant(k=9);
sqrtdiv=constant(k=0);
sqrt=constant(k=1);
div=constant(k=2);
sqrtdiv_add=constant(k=3);
sqrt_add=constant(k=4);
div_add=constant(k=5);
clear=constant(k=7);
ver_blur=constant(k=10);
hor_blur=constant(k=11);
blur=constant(k=21);
quarter=constant(k=2);
hor_half=constant(k=0);
ver_half=constant(k=1);
flip=constant(k=3);
clip=constant(k=0);
resize=constant(k=1);
tunnel=constant(k=1);
plane=constant(k=0);
sphere=constant(k=2);
shaded=constant(k=1);
normal=constant(k=0);
shaded_plane=constant(k=3);
shaded_tunnel=constant(k=4);
shaded_sphere=constant(k=5);
flat=constant(k=1);
wire=constant(k=0);
phong=constant(k=2);
glenz=constant(k=3);
vector=constant(k=4);
gouraud=constant(k=5);
texture=constant(k=6);
env=constant(k=7);
phong_texture=constant(k=8);
gouraud_texture=constant(k=9);
#
};
############ end.plg ############
end.plg:script{
#
<const.plg>
movsd_png=texture(in=movsd.png);
movsd=mixer(tex=movsd_png);
pclk=oscilator(fce=clock);
spc=path(time=pclk,num=6,y=200,150,100,50,25,0);
c_sin=oscilator(amp=32,add=192);
title:text(b=c_sin,in=movsd,str=redox_._dement_._strejda_._osk_._filipes_._adamj,x=320,y=360,
org=center,space=spc,font=winds.fnt);
#
bint=path(time=pclk,num=6,y=50,30,15,10,5,0);
blur=mixer(in=bwin,op=hor_blur,int=bint);
bwin=window(in=title,win=blur,x=170,y=315,w=290,h=40);
output:screen(in=bwin,xres=640,yres=480,x=0,y=90,w=640,h=300);
#
};
############ hodiny.plg ############
hodiny.plg:script{
#
<const.plg>
<osc.plg>
hodiny_png=texture(in=hodiny.png);
hodiny=mixer(tex=hodiny_png);
#
sachy=texture(in=sachy.png);
zclk=oscilator(fce=clock,freq=1000);
map:mapper(tex=sachy,z=zclk,a=3.14,c=1.57,b=1.57,type=shaded_plane);
inv_map:mixer(in=map,op=invert);
map_win=window(in=hodiny,win=inv_map,x=200,y=100,w=200,h=120);
#
alfa2a:oscilator(fce=0,amp=6.28,freq=0.3);
alfa2b:oscilator(fce=0,amp=6.28,freq=0.1);
alfa1a:oscilator(fce=0,amp=6.28,freq=0.4);
alfa1b:oscilator(fce=0,amp=6.28,freq=0.5);
#
box1a=object(in=hodiny_win,obj=hod1.vec,bb=-16,z=-50,b=alfa1a,type=wire);
box1b=object(in=box1a,obj=hod1.vec,bb=-32,z=-50,b=alfa1b,type=wire);
box2a=object(in=box1b,obj=hod2.vec,bb=-16,z=-50,b=alfa2a,type=wire);
box2b=object(in=box2a,obj=hod2.vec,bb=-32,z=-50,b=alfa2b,type=wire);
hodiny_win=window(in=map_win,win=box2b,x=0,y=100,w=200,h=300);
#
film=mpeg(in=lid_low.mpg);
film_win=window(in=hodiny_win,win=film,x=220,y=240,w=160,h=120);
#
cls:mixer(op=clear);
comm=voxel(in=cls,b=255,x=x_inf,y=x_inf,a=oalfa);
ckal=mirror(tex=comm,level_hor_half);
cinv=mixer(in=ckal,op=invert);
roto=zoomer(tex=cinv,x=128,y=128,rot=192);
roto_win=window(in=film_win,win=roto,x=425,y=90,w=200,h=300);
#
pclk=oscilator(fce=clock);
ryp=path(time=pclk,num=5,y=-105,-50,0,120,105);
rodinka=texture(in=rodinka.png);
rodinka_mix=mixer(in=rodinka_win,tex=rodinka,op=transluency,int=128);
rodinka_win=window(in=roto_win,win=rodinka_mix,x=425,y=ryp,w=200,h=200);
#
ram_rot1=oscilator(amp=0.2);
ram_rot2=oscilator(amp=0.2,phase=1.57);
ram1=object(in=rodinka_win,obj=ram.vec,z=-160,x=-40,y=-120,bb=-64,a=1.57,b=ram_rot1,type=wire);
ram2=object(in=ram1,obj=ram.vec,z=-160,x=-40,y=-120,bb=-64,a=1.57,b=ram_rot2,type=wire);
#
xp1=oscilator(amp=125,add=125,freq=0.5);
xp2=oscilator(amp=125,add=125,freq=0.5,phase=1.57);
xp3=oscilator(amp=125,add=125,freq=0.5,phase=3.14);
li1=light(i=128,x=xp1,y=25,type=div);
li2=light(i=128,in=li1,x=xp2,y=25,type=div_add);
li3=light(i=128,in=li2,x=xp3,y=25,type=div_add);
l_inv=mixer(in=li3,op=invert);
l_mix=mixer(in=l_win,tex=l_inv,op=transluency,int=128);
l_win=window(in=ram2,win=l_mix,x=400,y=325,w=250,h=50);
#
spc=oscilator(amp=5,add=5,freq=0.25);
title:text(b=0,in=l_win,str=progressive_family,x=520,y=345,
org=center,space=spc,font=wind.fnt);
#
output:screen(in=title,xres=640,yres=480,x=0,y=90,w=640,h=300);
};
############ intro.plg ############
intro.plg:script{
#
<const.plg>
<osc.plg>
pino=texture(in=pinokijo.png);
#
xp1=oscilator(amp=90,add=160,freq=0.8);
yp1=oscilator(amp=20,add=50,freq=0.8,phase=1.54);
io1=oscilator(amp=200,add=512,freq=0.8);
ialfa:oscilator(fce=saw,amp=6.28,freq=1);
iy_sin:oscilator(fce=saw,amp=700,freq=1);
pclk:oscilator(fce=clock,freq=0.25,phase=-1.5);
pint:path(time=pclk,num=3,y=255,128,0);
pspace:path(time=pclk,num=4,y=640,200,100,20);
#
li1=light(i=io1,x=xp1,y=yp1,type=sqrtdiv);
comm=voxel(in=li1,b=0,x=x_inf,y=x_inf,a=oalfa);
#cloop=loop(in=comm);
cinv=mixer(in=comm,op=invert);
cfli=mirror(tex=cinv,level=flip);
#hkal=mirror(tex=cfli,level=hor_half);
#vkal=mirror(tex=hkal,level=ver_half);
i3d=object(in=cfli,obj=intro.vec,bb=-32,x=-200,x=200,z=-100,a=1.57,b=ialfa,type=wire);
p3d=object(in=i3d,obj=penta.vec,bb=64,y=iy_sin,x=-200,z=-200,a=1.57,b=1.57,type=wire);
kal=mirror(tex=p3d,level=quarter);
iwin=window(win=kal,x=0,y=90,w=640,h=300);
pmix=mixer(in=pwin,tex=pino,op=transluency,int=pint);
pwin=window(in=iwin,win=pmix,x=264,y=140,w=112,h=200);
#
title_cls=mixer(tex=title_win,op=transluency,int=128);
title:text(b=0,in=title_cls,str=pinokijo,x=320,y=2,
org=center,space=pspace,font=wind.fnt);
#title_mix=mixer(in=title,op=transluency,int=pint);
title_win=window(in=pwin,win=title,x=0,y=350,w=640,h=15);
#
output:screen(in=title_win,xres=640,yres=480,x=0,y=90,w=640,h=300);
#
};
############ komin3d.plg ############
komin3d.plg:script{
#
<const.plg>
<kopac.plg>
pat=texture(in=pat.png);
komin_png=texture(in=komin.png);
komin=mixer(tex=komin_png);
alfa:oscilator(fce=0,amp=6.28,freq=0.1);
#
komin3d=object(in=komin_win,obj=valec.vec,bb=-32,z=400,x=-200,y=300,a=-0.78,b=alfa,c=0.56,type=wire);
komin_win=window(in=komin,win=komin3d,x=0,y=92,w=180,h=300);
#
freq_clk=oscilator(fce=clock,phase=-11,freq=0.5);
freqp=path(time=freq_clk,num=4,y=0.1,0.05,0.01,0.005);
frame_saw=oscilator(fce=saw,amp=500,freq=freqp);
bodaky=scene(idx=0,b3d=bodaky.b3d,key=bodaky.key,
xfov=175,yfov=-120,frame=frame_saw);
bodaky_win=window(in=komin_win,win=bodaky,x=220,y=190,w=320,h=200);
kk_mix=mixer(in=k_win,tex=k_trans,op=transluency,int=128);
pclk=oscilator(fce=clock);
kxp=path(time=pclk,num=5,y=640,550,500,450,470);
k_win=window(in=bodaky_win,win=kk_mix,x=kxp,y=90,w=204,h=204);
#
yclk=oscilator(fce=clock,freq=100);
zzoom=zoomer(tex=pat,y=yclk);
zz_mix=mixer(in=z_win,tex=zzoom,op=transluency,int=128);
z_win=window(in=k_win,win=zz_mix,x=200,y=90,w=40,h=300);
#
xp1=oscilator(amp=50,add=125,freq=0.5;
yp1=oscilator(amp=40,add=50,freq=0.4,phase=1.54);
io1=oscilator(amp=200,add=512,freq=0.1);
#
li1=light(i=io1,x=xp1,y=yp1,type=sqrtdiv);
#li2=light(in=li1,i=io1,x=xp1,y=yp1,type=sqrtdiv_add);
ll_mix=mixer(in=l_win,tex=li1,op=transluency,int=128);
l_win=window(in=z_win,win=ll_mix,x=270,y=120,w=250,h=100);
#
ialfa1:oscilator(fce=saw,amp=6.28,freq=2);
ialfa2:oscilator(fce=saw,amp=6.28,freq=4);
star3d1=object(in=l_win,obj=star.vec,bb=0,x=830,y=-300,a=1.57,b=ialfa1,type=glenz);
star3d2=object(in=star3d1,obj=star.vec,bb=-32,x=830,y=-300,a=1.57,b=ialfa2,type=wire);
#
spc=path(time=pclk,num=5,y=150,100,50,25,10);
title:text(b=255,in=star3d2,str=working_together,x=380,y=370,
org=center,space=spc,font=wind.fnt);
#
output:screen(in=title,xres=640,yres=480,x=0,y=90,w=640,h=300);
#
};
############ kopac.plg ############
kopac.plg:script{
#
<const.plg>
k0=texture(in=k0.png);
k1=texture(in=k1.png);
k2=texture(in=k2.png);
k3=texture(in=k3.png);
k0b=mixer(tex=k0);
k1b=mixer(tex=k1);
k2b=mixer(tex=k2);
k3b=mixer(tex=k3);
#
k_clk:oscilator(fce=saw,amp=8,freq=0.75);
k_trans_int:oscilator(add=128,amp=128,phase=-1.57,freq=1.5);
#
k_t1:oscilator(time=k_clk,fce=timer,amp=6);
k_t2:oscilator(time=k_clk,fce=timer,amp=4);
k_t3:oscilator(time=k_clk,fce=timer,amp=2);
#
k_mix1a=mixer(in=k_mix2a,tex=k0,op=k_t1);
k_mix2a=mixer(in=k_mix3a,tex=k2,op=k_t2);
k_mix3a=mixer(in=k0,tex=k2,op=k_t3);
#
k_mix1b=mixer(in=k_mix2b,tex=k3b,op=k_t1);
k_mix2b=mixer(in=k_mix3b,tex=k3b,op=k_t2);
k_mix3b=mixer(in=k1b,tex=k1b,op=k_t3);
#
k_trans=mixer(in=k_mix1b,tex=k_mix1a,op=transluency,int=k_trans_int);
#
#k_win=window(win=k_trans,x=250,y=138,w=204,h=204);
#output:screen(in=k_win,xres=640,yres=480);
#
};
############ lights.plg ############
lights.plg:script{
#
<const.plg>
#
io1=oscilator(amp=32,add=64,freq=0.25);
io2=oscilator(amp=32,add=64,freq=0.25,phase=0.78);
io3=oscilator(amp=32,add=64,freq=0.25,phase=1.57);
io4=oscilator(amp=32,add=64,freq=0.25,phase=2.35);
io5=oscilator(amp=32,add=64,freq=0.25,phase=3.14);
io6=oscilator(amp=32,add=64,freq=0.25,phase=3.92);
#
li1=light( i=io1,x=15,y=40,type=sqrtdiv);
li2=light(in=li1,i=io2,x=14,y=70,type=sqrtdiv_add);
li3=light(in=li2,i=io3,x=13,y=100,type=sqrtdiv_add);
li4=light(in=li3,i=io4,x=12,y=130,type=sqrtdiv_add);
li5=light(in=li4,i=io5,x=11,y=160,type=sqrtdiv_add);
li6=light(in=li5,i=io6,x=10,y=190,type=sqrtdiv_add);
li_inv=mixer(in=li6,op=invert);
#li_win=window(win=li_inv,x=0,y=90,w=30,h=220);
#output=screen(in=li_win,xres=640,yres=480);
#
};
############ mamina.plg ############
mamina.plg:script{
#
<const.plg>
m0=texture(in=m0.png);
m1=texture(in=m1.png);
m2=texture(in=m2.png);
m3=texture(in=m1.png);
m0b=mixer(tex=m0);
m1b=mixer(tex=m1);
m2b=mixer(tex=m2);
m3b=mixer(tex=m3);
#
m_clk:oscilator(fce=saw,amp=8,freq=0.5);
m_trans_int:oscilator(add=128,amp=128,phase=-1.57);
#
m_t1:oscilator(time=m_clk,fce=timer,amp=6);
m_t2:oscilator(time=m_clk,fce=timer,amp=4);
m_t3:oscilator(time=m_clk,fce=timer,amp=2);
#
m_mix1a=mixer(in=m_mix2a,tex=m0,op=m_t1);
m_mix2a=mixer(in=m_mix3a,tex=m2,op=m_t2);
m_mix3a=mixer(in=m0,tex=m2,op=m_t3);
#
m_mix1b=mixer(in=m_mix2b,tex=m3b,op=m_t1);
m_mix2b=mixer(in=m_mix3b,tex=m3b,op=m_t2);
m_mix3b=mixer(in=m1b,tex=m1b,op=m_t3);
#
m_trans=mixer(in=m_mix1b,tex=m_mix1a,op=transluency,int=m_trans_int);
#
#m_win=window(win=m_trans,x=118,y=138,w=116,h=192);
#output:screen(in=m_win,xres=640,yres=480);
#
};
############ osc.plg ############
osc.plg:script{
# begin
rl=oscilator(fce=saw,amp=255,freq=0.5);
rr=oscilator(fce=saw,amp=-255,freq=0.5);
x_inf=oscilator(fce=clock,freq=1);
x_sin=oscilator(amp=128,freq=0.5);
f1_sin=oscilator(amp=1,add=1,freq=0.5);
f2_sin=oscilator(amp=1,add=1,freq=1);
f_sin=oscilator(amp=1,freq=0.01);
r_sin=oscilator(amp=127,add=127,freq=0.1);
g_sin=oscilator(amp=127,add=127,freq=0.5);
b_sin=oscilator(amp=127,add=127,freq=0.7);
oalfa:oscilator(fce=saw,amp=6.28,freq=0.1);
zooming1=oscilator(amp=128,add=256,freq=0.2);
zooming2=oscilator(amp=256,add=256,freq=0.2,phase=1.57);
ox=oscilator(amp=20,freq=0.05);
oy=oscilator(amp=-20,freq=0.05,phase=0.5);
odx=oscilator(amp=128,freq=0.2);
ody=oscilator(amp=128,freq=0.1,phase=0.75);
oamp=oscilator(amp=10,freq=0.01);
# end
};
############ sagvan.plg ############
sagvan.plg:script{
<const.plg>
#
clss=mixer(op=clear);
#
alfa1=oscilator(fce=0,amp=6.28,add=0,freq=0.1,phase=0);
alfa2=oscilator(fce=0,amp=6.28,add=0,freq=0.1,phase=0.78);
alfa3=oscilator(fce=0,amp=6.28,add=0,freq=0.1,phase=1.57);
alfa4=oscilator(fce=0,amp=6.28,add=0,freq=0.1,phase=2.35);
alfa5=oscilator(fce=0,amp=6.28,add=0,freq=0.1,phase=3.14);
alfa6=oscilator(fce=0,amp=6.28,add=0,freq=0.1,phase=3.92);
alfa7=oscilator(fce=0,amp=6.28,add=0,freq=0.1,phase=4.70);
alfa8=oscilator(fce=0,amp=6.28,add=0,freq=0.1,phase=5.48);
#
dist0=oscilator(fce=1,amp=100,add=1000,freq=0.25,phase=0);
dist1=oscilator(fce=1,amp=150,add=1000,freq=0.5,phase=0);
dist2=oscilator(fce=1,amp=150,add=1000,freq=0.5,phase=0.78);
dist3=oscilator(fce=1,amp=150,add=1000,freq=0.5,phase=1.57);
dist4=oscilator(fce=1,amp=150,add=1000,freq=0.5,phase=2.35);
dist5=oscilator(fce=1,amp=150,add=1000,freq=0.5,phase=3.14);
dist6=oscilator(fce=1,amp=150,add=1000,freq=0.5,phase=3.92);
dist7=oscilator(fce=1,amp=150,add=1000,freq=0.5,phase=4.70);
dist8=oscilator(fce=1,amp=150,add=1000,freq=0.5,phase=5.48);
#
pap1=object(in=clss,obj=sag3.vec,x=320,y=150,z=dist1,a=-1.57,b=3.14,c=alfa1,type=vector);
pap2=object(in=pap1,obj=sag3.vec,x=320,y=150,z=dist2,a=-1.57,b=3.14,c=alfa2,type=vector);
pap3=object(in=pap2,obj=sag3.vec,x=320,y=150,z=dist3,a=-1.57,b=3.14,c=alfa3,type=vector);
pap4=object(in=pap3,obj=sag3.vec,x=320,y=150,z=dist4,a=-1.57,b=3.14,c=alfa4,type=vector);
pap5=object(in=pap4,obj=sag3.vec,x=320,y=150,z=dist5,a=-1.57,b=3.14,c=alfa5,type=vector);
pap6=object(in=pap5,obj=sag3.vec,x=320,y=150,z=dist6,a=-1.57,b=3.14,c=alfa6,type=vector);
pap7=object(in=pap6,obj=sag3.vec,x=320,y=150,z=dist7,a=-1.57,b=3.14,c=alfa7,type=vector);
pap8=object(in=pap7,obj=sag3.vec,x=320,y=150,z=dist8,a=-1.57,b=3.14,c=alfa8,type=vector);
kruh=object(in=pap8,obj=sag2.vec,x=320,y=150,z=dist0,a=-1.57,b=3.14,c=alfa1,type=vector);
_s_=object(in=kruh,obj=sag_s.vec,x=320,y=150,z=dist0,a=-1.57,b=0,c=alfa1,type=vector);
#
blurr=mixer(tex=_s_,op=transluency,int=128);
bwin=window(win=blurr,x=0,y=90,w=640,h=300);
title=text(b=255,in=bwin,str=powered_by_sagvan,
x=320,y=335,org=center,font=winds.fnt);
#
output=screen(in=title,xres=640,yres=480,x=0,y=90,w=640,h=300);
#
};
############ schody.plg ############
schody.plg:script{
#
<const.plg>
<vlajka.plg>
<lights.plg>
schody_png=texture(in=schody.png);
schody=mixer(tex=schody_png);
zsin=oscilator(amp=50,add=100,freq=0.2);
ssin=oscilator(amp=50,add=128,freq=0.2);
#
schody3d=object(in=schody_win,obj=schody.vec,
x=100,bb=16,z=zsin,y=-350,a=0.15,skew=ssin,type=wire);
schody_win=window(in=schody,win=schody3d,x=425,y=92,w=210,h=300);
#
film=mpeg(in=let_low.mpg);
film_win=window(in=schody_win,win=film,x=260,y=265,w=160,h=120);
#
cls=mixer(op=clear);
zzsin=oscilator(add=1000,amp=400,freq=0.5,phase=1.57);
rrl=oscilator(fce=saw,amp=255,freq=0.5);
zooming=oscilator(amp=256,add=512,freq=0.3);
zoom=zoomer(in=cls,tex=o3d,x=128,y=128,scale=zooming,rot=rrl);
#
alfa1=oscilator(fce=saw,amp=6.28,freq=0.3);
o3d=object(in=blurr,obj=krychle.vec,
z=zzsin,a=alfa1,b=alfa1,c=alfa1,type=glenz);
blurr=mixer(in=feed,op=blur,int=1);
zinv=mixer(in=zoom,op=invert);
kkal=mirror(tex=zinv,level=quarter);
feed=loop(in=kkal);
#
vclk=oscilator(fce=clock);
vyp=path(time=vclk,num=5,y=-50,40,70,120,90);
li_win=window(in=film_win,win=li_inv,x=0,y=90,w=30,h=233);
fwin=window(in=li_win,win=feed,x=245,y=92,w=180,h=170);
fv_mix=mixer(in=v_win,tex=v_trans,op=transluency,int=128);
v_win=window(in=fwin,win=v_trans,x=25,y=vyp,w=221,h=233);
#
ram_rot=oscilator(amp=0.1,freq=0.2);
ram=object(in=sp_win,obj=ram2.vec,x=30,
z=-120,y=-200,bb=-32,a=0.3,b=ram_rot,type=wire);
#
pat=texture(in=pat.png);
alfa=oscilator(fce=saw,amp=6.28,freq=0.1);
sp:mapper(tex=pat,x=32,skew=200,a=alfa,b=alfa,c=alfa,type=shaded_plane);
inv_sp:mixer(in=sp,op=invert);
sp_win=window(in=v_win,win=inv_sp,x=2,y=325,w=240,h=60);
#
pclk=oscilator(fce=clock,phase=-1);
spc=path(time=pclk,num=4,y=100,50,25,2);
title:text(in=ram,str=fractal_dimension,x=130,y=302,b=0,
org=center,space=spc,font=wind.fnt);
#
output=screen(in=title,xres=640,yres=480,x=0,y=90,w=640,h=300);
#
};
############ setkani.plg ############
setkani.plg:script{
#
<const.plg>
s0=texture(in=s0.png);
s1=texture(in=s1.png);
s2=texture(in=s2.png);
s3=texture(in=s3.png);
s0b=mixer(tex=s0);
s1b=mixer(tex=s1);
s2b=mixer(tex=s2);
s3b=mixer(tex=s3);
#
s_clk:oscilator(fce=saw,amp=8,freq=0.25);
s_trans_int:oscilator(add=128,amp=128,phase=-1.57,freq=0.5);
#
s_t1:oscilator(time=s_clk,fce=timer,amp=6);
s_t2:oscilator(time=s_clk,fce=timer,amp=4);
s_t3:oscilator(time=s_clk,fce=timer,amp=2);
#
s_mix1a=mixer(in=s_mix2a,tex=s0,op=s_t1);
s_mix2a=mixer(in=s_mix3a,tex=s2,op=s_t2);
s_mix3a=mixer(in=s0,tex=s2,op=s_t3);
#
s_mix1b=mixer(in=s_mix2b,tex=s3b,op=s_t1);
s_mix2b=mixer(in=s_mix3b,tex=s3b,op=s_t2);
s_mix3b=mixer(in=s1b,tex=s1b,op=s_t3);
#
s_trans=mixer(in=s_mix1b,tex=s_mix1a,op=transluency,int=s_trans_int);
#
#s_win=window(win=s_trans,x=118,y=138,w=186,h=213);
#output:screen(in=s_win,xres=640,yres=480);
#
};
############ valec3d.plg ############
valec3d.plg:script{
#
<osc.plg>
<const.plg>
<setkani.plg>
valec_png=texture(in=valec.png);
valec=mixer(tex=valec_png);
alfa:oscilator(fce=0,amp=6.28,freq=0.1);
#
valec3d=object(in=valec_win,obj=valec.vec,bb=-32,z=150,b=alfa,type=wire);
valec_win=window(in=valec,win=valec3d,x=425,y=92,w=210,h=300);
#
#fov_clk=oscilator(fce=clock,phase=-11,freq=0.5);
#xfovp=path(time=fov_clk,num=4,y=150,250,300,100);
#yfovp=path(time=fov_clk,num=4,y=-120,-250,-300,-100);
freq_clk=oscilator(fce=clock,phase=-11,freq=0.5);
freqp=path(time=freq_clk,num=4,y=0.1,0.2,0.3,0.005);
frame_saw=oscilator(fce=saw,amp=500,freq=freqp);
krychle=scene(idx=1,b3d=krychle.b3d,key=krychle.key,
xfov=175,yfov=-120,frame=frame_saw);
star=object(in=krychle,obj=star.vec,
x=500,y=-300,bb=64,b=alfa,a=1.57,type=wire);
krychle_win=window(in=valec_win,win=star,x=100,y=100,w=320,h=200);
#
sclk=oscilator(fce=clock);
sxp=path(time=sclk,num=5,y=-300,-150,-50,0,-40);
ss_mix=mixer(in=s_win,tex=s_trans,op=transluency,int=64);
s_win=window(in=krychle_win,win=ss_mix,x=sxp,y=177,w=186,h=213);
#
pclk=oscilator(fce=clock,phase=-1);
spc=path(time=pclk,num=4,y=100,50,25,0);
title:text(b=255,in=s_win,str=dee_makes_it_possible,x=260,y=280,
org=center,space=spc,font=wind.fnt);
#
map=texture(in=bump.png);
sach=texture(in=sachy_b.png);
pat=texture(in=pat.png);
#
lx1_sin=oscilator(amp=130,add=135,freq=0.4);
ly1_sin=oscilator(amp=30,add=34,freq=0.5,phase=1.57);
#
lx2_sin=oscilator(amp=130,add=135,freq=0.2);
ly2_sin=oscilator(amp=30,add=34,freq=0.5,phase=0.78);
#
l0:light(x=lx1_sin,y=ly1_sin,type=sqrtdiv);
l1:light(in=l0,x=lx2_sin,y=ly2_sin,type=sqrtdiv_add);
sachy=mixer(tex=sach);
bmp:mixer(in=sachy,tex=l1,bump=map,op=bump,int=2);
#
oval_z1=oscilator(add=-50,amp=50);
oval_z2=oscilator(add=-50,amp=50,phase=1.57);
oval1=object(in=bmp,obj=oval.vec,z=oval_z1,bb=64,a=1.57,type=wire);
oval2=object(in=oval1,obj=oval.vec,z=oval_z2,bb=64,a=1.57,type=wire);
#
b_win=window(in=title,win=oval2,x=152,y=310,w=270,h=68);
#
rrint=texture(in=rrinti.png);
int_mix:mixer(in=int_win,tex=rrint,op=add,int=255);
int_win=window(in=b_win,win=int_mix,x=130,y=100,w=270,h=70);
#
alfa:oscilator(fce=saw,amp=6.28,freq=0.5);
zclk=oscilator(fce=clock,freq=500);
tun:mapper(tex=pat,x=32,z=zclk,c=alfa,type=shaded_tunnel);
inv_tun:mixer(in=tun,op=invert);
tun_win=window(in=int_win,win=inv_tun,x=5,y=95,w=90,h=80);
#
zpat=texture(in=zpat.png);
zoom:zoomer(tex=zpat,x=128,y=128,scale=zooming1,rot=rl);
zoom_mix:mixer(in=zoom_win,tex=zoom,op=transluency,int=128);
zoom_win=window(in=tun_win,win=zoom_mix,x=105,y=90,w=20,h=300);
#
output:screen(in=zoom_win,xres=640,yres=480,x=0,y=90,w=640,h=300);
#
};
############ vlajka.plg ############
vlajka.plg:script{
#
<const.plg>
v0=texture(in=v0.png);
v1=texture(in=v1.png);
v2=texture(in=v2.png);
v3=texture(in=v1.png);
v0b=mixer(tex=v0);
v1b=mixer(tex=v1);
v2b=mixer(tex=v2);
v3b=mixer(tex=v3);
#
v_clk:oscilator(fce=saw,amp=8,freq=0.5);
v_trans_int:oscilator(add=128,amp=128,phase=-1.57);
#
v_t1:oscilator(time=v_clk,fce=timer,amp=6);
v_t2:oscilator(time=v_clk,fce=timer,amp=4);
v_t3:oscilator(time=v_clk,fce=timer,amp=2);
#
v_mix1a=mixer(in=v_mix2a,tex=v0,op=v_t1);
v_mix2a=mixer(in=v_mix3a,tex=v2,op=v_t2);
v_mix3a=mixer(in=v0,tex=v2,op=v_t3);
#
v_mix1b=mixer(in=v_mix2b,tex=v3b,op=v_t1);
v_mix2b=mixer(in=v_mix3b,tex=v3b,op=v_t2);
v_mix3b=mixer(in=v1b,tex=v1b,op=v_t3);
#
v_trans=mixer(in=v_mix1b,tex=v_mix1a,op=transluency,int=v_trans_int);
#
#v_win=window(win=v_trans,x=118,y=138,w=221,h=233);
#output:screen(in=v_win,xres=640,yres=480);
#
};
############ zena.plg ############
zena.plg:script{
#
<osc.plg>
<const.plg>
<mamina.plg>
zena_png=texture(in=zena.png);
zena=mixer(tex=zena_png);
alfa:oscilator(fce=0,amp=6.28,freq=0.1);
#
xr_sin=oscilator(freq=0.2);
yr_sin=oscilator(freq=0.5,phase=1.57);
xg_sin=oscilator(freq=0.1,phase=2.31);
yg_sin=oscilator(freq=0.3,phase=0.78);
xb_sin=oscilator(freq=0.4,phase=1.02);
yb_sin=oscilator(freq=0.2,phase=0.57);
#
plaz=plazma(xr=xr_sin,yr=yr_sin,xg=xg_sin,yg=yg_sin,xb=xb_sin,yb=yb_sin);
#
wkal=mirror(tex=plaz,level=quarter);
wrap=warper(tex=wkal,x=ox,y=oy,dx=odx,dy=ody,amp=oamp);
skal=mirror(tex=wrap,level=hor_half);
sinv=mixer(in=skal,op=invert);
sw_mix1=mixer(in=swin1,tex=sinv,op=transluency,int=32);
sw_mix2=mixer(in=swin2,tex=sinv,op=transluency,int=32);
sw_mix3=mixer(in=swin3,tex=sinv,op=transluency,int=32);
swin1=window(in=zena,win=sw_mix1,x=10,y=100,w=400,h=40);
swin2=window(in=swin1,win=sw_mix2,x=10,y=150,w=400,h=40);
swin3=window(in=swin2,win=sw_mix3,x=10,y=200,w=400,h=40);
#
zena3d=object(in=zena_win,obj=destnik.vec,
bb=32,y=200,z=100,a=0.6,b=alfa,c=0.2,type=wire);
zena_win=window(in=swin3,win=zena3d,x=450,y=100,w=180,h=200);
#
bow=object(tex=pat,obj=val2.vec,z=zzs,
a=alfa,b=alfa,c=alfa,type=phong_texture);
bowkal=mirror(tex=bow,level=quarter);
b_win=window(in=zena_win,win=bowkal,x=18,y=285,w=100,h=100);
#
dclk=oscilator(fce=clock);
dxp=path(time=dclk,num=5,y=-100,-50,0,50,10);
m_mix=mixer(in=m_win,tex=m_trans,op=transluency,int=64);
m_win=window(in=b_win,win=m_mix,x=dxp,y=100,w=116,h=192);
#
deti=texture(in=deti.png);
pat=texture(in=zpat.png);
zzs=oscilator(add=-150,amp=50);
dyp=path(time=dclk,num=5,y=300,250,200,150,190);
d_mix=mixer(in=d_win,tex=deti,op=transluency,int=32);
d_win=window(in=m_win,win=deti,x=220,y=dyp,w=197,h=200);
#
a1=oscilator(amp=3.14,freq=0.2);
a2=oscilator(amp=3.14,phase=0.39,freq=0.2);
a3=oscilator(amp=3.14,phase=0.78,freq=0.2);
a4=oscilator(amp=3.14,phase=1.17,freq=0.2);
cls:mixer(op=clear);
val1=object(in=cls,obj=val2.vec,y=-220,bb=0,b=a1,type=phong);
val2=object(in=val1,obj=val2.vec,y=-70,bb=0,b=a2,type=phong);
val3=object(in=val2,obj=val2.vec,y=70,bb=0,b=a3,type=phong);
val4=object(in=val3,obj=val2.vec,y=220,bb=0,b=a4,type=phong);
v_mix=mixer(in=val4,op=blur,int=1);
v_inv=mixer(in=v_mix,op=invert);
v_kal=mirror(tex=v_inv,level=quarter);
v_win=window(in=d_win,win=v_kal,x=170,y=90,w=50,h=300);
#
radio=object(in=v_win,obj=radio.vec,
x=-750,y=-400,bb=-64,z=250,a=1.57,b=alfa,type=wire);
#
pclk=oscilator(fce=clock,phase=-1);
spc=path(time=pclk,num=5,y=150,100,50,25,0);
title:text(b=0,in=radio,str=advanced_generation,
x=320,y=193,org=center,space=spc,font=wind.fnt);
#
output:screen(in=title,xres=640,yres=480,x=0,y=90,w=640,h=300);
#
};
############### end ##############