Flexi - lorenz attractor.milk 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602
  1. MILKDROP_PRESET_VERSION=201
  2. PSVERSION=2
  3. PSVERSION_WARP=2
  4. PSVERSION_COMP=2
  5. [preset00]
  6. fRating=4.000000
  7. fGammaAdj=1.000
  8. fDecay=1.000
  9. fVideoEchoZoom=2.000
  10. fVideoEchoAlpha=0.000
  11. nVideoEchoOrientation=0
  12. nWaveMode=0
  13. bAdditiveWaves=1
  14. bWaveDots=0
  15. bWaveThick=0
  16. bModWaveAlphaByVolume=1
  17. bMaximizeWaveColor=1
  18. bTexWrap=1
  19. bDarkenCenter=0
  20. bRedBlueStereo=0
  21. bBrighten=0
  22. bDarken=0
  23. bSolarize=0
  24. bInvert=0
  25. fWaveAlpha=0.009
  26. fWaveScale=2.713
  27. fWaveSmoothing=0.000
  28. fWaveParam=0.000
  29. fModWaveAlphaStart=1.200
  30. fModWaveAlphaEnd=1.200
  31. fWarpAnimSpeed=1.000
  32. fWarpScale=1.331
  33. fZoomExponent=1.00000
  34. fShader=0.000
  35. zoom=0.99951
  36. rot=0.00000
  37. cx=0.500
  38. cy=0.500
  39. dx=0.00000
  40. dy=0.00000
  41. warp=0.00909
  42. sx=1.00000
  43. sy=1.00000
  44. wave_r=0.440
  45. wave_g=0.400
  46. wave_b=1.000
  47. wave_x=0.500
  48. wave_y=0.500
  49. ob_size=0.500
  50. ob_r=0.010
  51. ob_g=0.000
  52. ob_b=0.000
  53. ob_a=0.000
  54. ib_size=0.260
  55. ib_r=0.250
  56. ib_g=0.250
  57. ib_b=0.250
  58. ib_a=0.000
  59. nMotionVectorsX=64.000
  60. nMotionVectorsY=48.000
  61. mv_dx=0.000
  62. mv_dy=0.000
  63. mv_l=0.850
  64. mv_r=0.500
  65. mv_g=0.500
  66. mv_b=0.500
  67. mv_a=0.000
  68. b1n=0.000
  69. b2n=0.000
  70. b3n=0.000
  71. b1x=1.000
  72. b2x=1.000
  73. b3x=1.000
  74. b1ed=0.000
  75. wavecode_0_enabled=0
  76. wavecode_0_samples=495
  77. wavecode_0_sep=4
  78. wavecode_0_bSpectrum=1
  79. wavecode_0_bUseDots=0
  80. wavecode_0_bDrawThick=1
  81. wavecode_0_bAdditive=1
  82. wavecode_0_scaling=100.00000
  83. wavecode_0_smoothing=1.00000
  84. wavecode_0_r=1.000
  85. wavecode_0_g=1.000
  86. wavecode_0_b=1.000
  87. wavecode_0_a=0.210
  88. wave_0_init1=t2 = 0;
  89. wave_0_init2=t3 = 0;
  90. wave_0_init3=t4 = 0;
  91. wave_0_init4=ab = 1;
  92. wave_0_per_point1=// lorenz-attractor calc
  93. wave_0_per_point2=xx1 = if(equal(sample,0),q11,xx1);
  94. wave_0_per_point3=yy1 = if(equal(sample,0),q12,yy1);
  95. wave_0_per_point4=zz1 = if(equal(sample,0),q13,zz1);
  96. wave_0_per_point5=dx1 = q14*(yy1-xx1);
  97. wave_0_per_point6=dy1 = xx1*(q15-zz1)-yy1;
  98. wave_0_per_point7=dz1 = xx1*yy1-q16*zz1;
  99. wave_0_per_point8=xx1 = xx1 + q17*dx1;
  100. wave_0_per_point9=yy1 = yy1 + q17*dy1;
  101. wave_0_per_point10=zz1 = zz1 + q17*dz1;
  102. wave_0_per_point11=
  103. wave_0_per_point12=// 3D model coordinates
  104. wave_0_per_point13=my_x = xx1*0.1;
  105. wave_0_per_point14=my_y = yy1*0.1;
  106. wave_0_per_point15=my_z = zz1*0.1 - 3;
  107. wave_0_per_point16=
  108. wave_0_per_point17=
  109. wave_0_per_point18=d = 5; // distance of the camera (on the z-axis) to the origin
  110. wave_0_per_point19=zoom = 0.4;
  111. wave_0_per_point20=
  112. wave_0_per_point21=// solid angles
  113. wave_0_per_point22=w1 = q2;
  114. wave_0_per_point23=w2 = q3;
  115. wave_0_per_point24=w3 = q4;
  116. wave_0_per_point25=
  117. wave_0_per_point26=// rotations
  118. wave_0_per_point27=x1 = cos(w1)*my_x + sin(w1)*my_y;
  119. wave_0_per_point28=y1 = -sin(w1)*my_x + cos(w1)*my_y;
  120. wave_0_per_point29=z1 = my_z;
  121. wave_0_per_point30=
  122. wave_0_per_point31=x2 = cos(w2)*x1 + sin(w2)*z1;
  123. wave_0_per_point32=z2 = -sin(w2)*x1 + cos(w2)*z1;
  124. wave_0_per_point33=y2 = y1;
  125. wave_0_per_point34=
  126. wave_0_per_point35=y3 = cos(w3)*y2 + sin(w3)*z2;
  127. wave_0_per_point36=z3 = -sin(w3)*y2 + cos(w3)*z2;
  128. wave_0_per_point37=x3 = x2;
  129. wave_0_per_point38=
  130. wave_0_per_point39=// perspective calculation
  131. wave_0_per_point40=
  132. wave_0_per_point41=l = sqrt(x3*x3 + y3*y3);
  133. wave_0_per_point42=w = atan2(x3,y3);
  134. wave_0_per_point43=p = tan(asin(1) + atan2(d+z3,l));
  135. wave_0_per_point44=d = sqrt(x3*x3 + y3*y3 + (z3+d)*(z3+d));
  136. wave_0_per_point45=
  137. wave_0_per_point46=my_x = zoom*sin(w)*p;
  138. wave_0_per_point47=my_y = zoom*cos(w)*p;
  139. wave_0_per_point48=
  140. wave_0_per_point49=x = 0.5 + my_x;
  141. wave_0_per_point50=y = 0.5 + my_y;
  142. wavecode_1_enabled=0
  143. wavecode_1_samples=512
  144. wavecode_1_sep=0
  145. wavecode_1_bSpectrum=0
  146. wavecode_1_bUseDots=0
  147. wavecode_1_bDrawThick=0
  148. wavecode_1_bAdditive=0
  149. wavecode_1_scaling=1.00000
  150. wavecode_1_smoothing=0.50000
  151. wavecode_1_r=1.000
  152. wavecode_1_g=1.000
  153. wavecode_1_b=1.000
  154. wavecode_1_a=1.000
  155. wave_1_per_point1=xx1 = if(equal(sample,0),q11,xx1);
  156. wave_1_per_point2=yy1 = if(equal(sample,0),q12,yy1);
  157. wave_1_per_point3=zz1 = if(equal(sample,0),q13,zz1);
  158. wave_1_per_point4=
  159. wave_1_per_point5=dx1 = q14*(yy1-xx1);
  160. wave_1_per_point6=dy1 = xx1*(q15-zz1)-yy1;
  161. wave_1_per_point7=dz1 = xx1*yy1-q16*zz1;
  162. wave_1_per_point8=xx1 = xx1 + q17*dx1;
  163. wave_1_per_point9=yy1 = yy1 + q17*dy1;
  164. wave_1_per_point10=zz1 = zz1 + q17*dz1;
  165. wave_1_per_point11=
  166. wave_1_per_point12=my_x = xx1*0.02;
  167. wave_1_per_point13=my_y = yy1*0.02;
  168. wave_1_per_point14=my_z = zz1*0.02;
  169. wave_1_per_point15=
  170. wave_1_per_point16=x = 0.5 + my_x;
  171. wave_1_per_point17=y = 0.5 + my_y;
  172. wavecode_2_enabled=0
  173. wavecode_2_samples=512
  174. wavecode_2_sep=0
  175. wavecode_2_bSpectrum=0
  176. wavecode_2_bUseDots=0
  177. wavecode_2_bDrawThick=0
  178. wavecode_2_bAdditive=0
  179. wavecode_2_scaling=1.00000
  180. wavecode_2_smoothing=0.50000
  181. wavecode_2_r=1.000
  182. wavecode_2_g=1.000
  183. wavecode_2_b=1.000
  184. wavecode_2_a=1.000
  185. wavecode_3_enabled=0
  186. wavecode_3_samples=512
  187. wavecode_3_sep=0
  188. wavecode_3_bSpectrum=0
  189. wavecode_3_bUseDots=0
  190. wavecode_3_bDrawThick=0
  191. wavecode_3_bAdditive=0
  192. wavecode_3_scaling=1.00000
  193. wavecode_3_smoothing=0.50000
  194. wavecode_3_r=1.000
  195. wavecode_3_g=1.000
  196. wavecode_3_b=1.000
  197. wavecode_3_a=1.000
  198. shapecode_0_enabled=1
  199. shapecode_0_sides=3
  200. shapecode_0_additive=1
  201. shapecode_0_thickOutline=0
  202. shapecode_0_textured=0
  203. shapecode_0_num_inst=179
  204. shapecode_0_x=0.500
  205. shapecode_0_y=0.500
  206. shapecode_0_rad=0.20065
  207. shapecode_0_ang=0.75398
  208. shapecode_0_tex_ang=3.14159
  209. shapecode_0_tex_zoom=0.99979
  210. shapecode_0_r=0.000
  211. shapecode_0_g=0.000
  212. shapecode_0_b=0.000
  213. shapecode_0_a=1.000
  214. shapecode_0_r2=0.000
  215. shapecode_0_g2=0.000
  216. shapecode_0_b2=0.000
  217. shapecode_0_a2=0.000
  218. shapecode_0_border_r=1.000
  219. shapecode_0_border_g=0.500
  220. shapecode_0_border_b=0.150
  221. shapecode_0_border_a=1.000
  222. shape_0_per_frame1=//lorenz-attractor calc
  223. shape_0_per_frame2=xx1 = if(equal(instance,0),q11,xx1);
  224. shape_0_per_frame3=yy1 = if(equal(instance,0),q12,yy1);
  225. shape_0_per_frame4=zz1 = if(equal(instance,0),q13,zz1);
  226. shape_0_per_frame5=
  227. shape_0_per_frame6=dx1 = q14*(yy1-xx1);
  228. shape_0_per_frame7=dy1 = xx1*(q15-zz1)-yy1;
  229. shape_0_per_frame8=dz1 = xx1*yy1-q16*zz1;
  230. shape_0_per_frame9=dd = sqrt(dx1*dx1+dy1*dy1+dz1*dz1);
  231. shape_0_per_frame10=xx1 = xx1 + q17*dx1/dd;
  232. shape_0_per_frame11=yy1 = yy1 + q17*dy1/dd;
  233. shape_0_per_frame12=zz1 = zz1 + q17*dz1/dd;
  234. shape_0_per_frame13=
  235. shape_0_per_frame14=
  236. shape_0_per_frame15=// 3D object model coordinates
  237. shape_0_per_frame16=my_x = xx1*0.1;
  238. shape_0_per_frame17=my_y = yy1*0.1;
  239. shape_0_per_frame18=my_z = zz1*0.1 - 3;
  240. shape_0_per_frame19=
  241. shape_0_per_frame20=
  242. shape_0_per_frame21=d = 5; // camera distance
  243. shape_0_per_frame22=zoom = 0.66;
  244. shape_0_per_frame23=
  245. shape_0_per_frame24=// solid angles
  246. shape_0_per_frame25=w1 = q3;
  247. shape_0_per_frame26=w2 = q4;
  248. shape_0_per_frame27=w3 = q5;
  249. shape_0_per_frame28=
  250. shape_0_per_frame29=// 3D rotation
  251. shape_0_per_frame30=x1 = cos(w1)*my_x + sin(w1)*my_y;
  252. shape_0_per_frame31=y1 = -sin(w1)*my_x + cos(w1)*my_y;
  253. shape_0_per_frame32=z1 = my_z;
  254. shape_0_per_frame33=
  255. shape_0_per_frame34=x2 = cos(w2)*x1 + sin(w2)*z1;
  256. shape_0_per_frame35=z2 = -sin(w2)*x1 + cos(w2)*z1;
  257. shape_0_per_frame36=y2 = y1;
  258. shape_0_per_frame37=
  259. shape_0_per_frame38=y3 = cos(w3)*y2 + sin(w3)*z2;
  260. shape_0_per_frame39=z3 = -sin(w3)*y2 + cos(w3)*z2;
  261. shape_0_per_frame40=x3 = x2;
  262. shape_0_per_frame41=
  263. shape_0_per_frame42=// perspective calculation
  264. shape_0_per_frame43=
  265. shape_0_per_frame44=l = sqrt(x3*x3 + y3*y3);
  266. shape_0_per_frame45=w = atan2(x3,y3);
  267. shape_0_per_frame46=p = tan(asin(1) + atan2(d+z3,l));
  268. shape_0_per_frame47=d = sqrt(x3*x3 + y3*y3 + (z3+d)*(z3+d));
  269. shape_0_per_frame48=
  270. shape_0_per_frame49=my_x = zoom*sin(w)*p;
  271. shape_0_per_frame50=my_y = zoom*cos(w)*p;
  272. shape_0_per_frame51=
  273. shape_0_per_frame52=x = 0.5 + my_x;
  274. shape_0_per_frame53=y = 0.5 + my_y;
  275. shape_0_per_frame54=
  276. shape_0_per_frame55=rad = rad/d;
  277. shape_0_per_frame56=ang = ang-instance/num_inst*asin(1)*8;
  278. shapecode_1_enabled=0
  279. shapecode_1_sides=12
  280. shapecode_1_additive=1
  281. shapecode_1_thickOutline=0
  282. shapecode_1_textured=0
  283. shapecode_1_num_inst=512
  284. shapecode_1_x=0.500
  285. shapecode_1_y=0.550
  286. shapecode_1_rad=0.09860
  287. shapecode_1_ang=0.00000
  288. shapecode_1_tex_ang=0.00000
  289. shapecode_1_tex_zoom=0.78740
  290. shapecode_1_r=0.200
  291. shapecode_1_g=0.030
  292. shapecode_1_b=0.550
  293. shapecode_1_a=1.000
  294. shapecode_1_r2=0.000
  295. shapecode_1_g2=0.000
  296. shapecode_1_b2=0.000
  297. shapecode_1_a2=0.000
  298. shapecode_1_border_r=1.000
  299. shapecode_1_border_g=1.000
  300. shapecode_1_border_b=1.000
  301. shapecode_1_border_a=0.000
  302. shape_1_init1=started = 0;
  303. shape_1_init2=t1 = 0.412; //seeds for pseudo random generator
  304. shape_1_init3=t2 = 0.4563;
  305. shape_1_init4=t3 = 0.6452;
  306. shape_1_init5=t4 = 0.2565;
  307. shape_1_per_frame1=rnd1 = if(equal(instance,0),t1,rnd1);
  308. shape_1_per_frame2=rnd2 = if(equal(instance,0),t2,rnd2);
  309. shape_1_per_frame3=rnd3 = if(equal(instance,0),t3,rnd3);
  310. shape_1_per_frame4=rnd4 = if(equal(instance,0),t4,rnd4);
  311. shape_1_per_frame5=rnd1 = 4*rnd1*(1-rnd1);
  312. shape_1_per_frame6=rnd2 = 4*rnd2*(1-rnd2);
  313. shape_1_per_frame7=rnd3 = 4*rnd3*(1-rnd3);
  314. shape_1_per_frame8=rnd4 = 4*rnd4*(1-rnd4);
  315. shape_1_per_frame9=t = .6;
  316. shape_1_per_frame10=t = (rnd1+time*t) - int(rnd1+time*t);
  317. shape_1_per_frame11=t = t + rnd2*0.1;
  318. shape_1_per_frame12=wh = rnd4*asin(1)*4;
  319. shape_1_per_frame13=wv = 0.25 + rnd3*0.1;
  320. shape_1_per_frame14=
  321. shape_1_per_frame15=d = 6; // makes the perspective impact
  322. shape_1_per_frame16=zoom = 1;
  323. shape_1_per_frame17=l = 1;
  324. shape_1_per_frame18=
  325. shape_1_per_frame19=// Kardan angles
  326. shape_1_per_frame20=
  327. shape_1_per_frame21=w1 = q3; // first rotation: clockwise in the desktop pane
  328. shape_1_per_frame22=w2 = q4; // rotation around vertical axis
  329. shape_1_per_frame23=w3 = q5; // rotation around horizontal axis
  330. shape_1_per_frame24=
  331. shape_1_per_frame25=
  332. shape_1_per_frame26=// definition of the 3D shape
  333. shape_1_per_frame27=
  334. shape_1_per_frame28=i = instance;
  335. shape_1_per_frame29=
  336. shape_1_per_frame30=my_x = t *(cos(wh)*sin(wv)*l)*2;
  337. shape_1_per_frame31=my_z = -(-0.5 +(t-0.75)*(t-0.75))*cos(wv)*l*2;
  338. shape_1_per_frame32=my_y = t*(sin(wh)*sin(wv)*l)*2;
  339. shape_1_per_frame33=
  340. shape_1_per_frame34=
  341. shape_1_per_frame35=
  342. shape_1_per_frame36=// 3D rotations
  343. shape_1_per_frame37=
  344. shape_1_per_frame38=x1 = cos(w1)*my_x + sin(w1)*my_y;
  345. shape_1_per_frame39=y1 = -sin(w1)*my_x + cos(w1)*my_y;
  346. shape_1_per_frame40=z1 = my_z;
  347. shape_1_per_frame41=
  348. shape_1_per_frame42=x2 = cos(w2)*x1 + sin(w2)*z1;
  349. shape_1_per_frame43=z2 = -sin(w2)*x1 + cos(w2)*z1;
  350. shape_1_per_frame44=y2 = y1;
  351. shape_1_per_frame45=
  352. shape_1_per_frame46=y3 = cos(w3)*y2 + sin(w3)*z2;
  353. shape_1_per_frame47=z3 = -sin(w3)*y2 + cos(w3)*z2;
  354. shape_1_per_frame48=x3 = x2;
  355. shape_1_per_frame49=
  356. shape_1_per_frame50=// perspective calculation
  357. shape_1_per_frame51=
  358. shape_1_per_frame52=p = tan(asin(1) + atan2(d+z3,sqrt(x3*x3 + y3*y3)));
  359. shape_1_per_frame53=d = sqrt(x3*x3 + y3*y3 + (z3+d)*(z3+d));
  360. shape_1_per_frame54=
  361. shape_1_per_frame55=rad = rad/d;
  362. shape_1_per_frame56=my_x = zoom*sin(atan2(x3,y3))*p;
  363. shape_1_per_frame57=my_y = zoom*cos(atan2(x3,y3))*p;
  364. shape_1_per_frame58=
  365. shape_1_per_frame59=x = 0.5 + my_x;
  366. shape_1_per_frame60=y = 0.5 + my_y;
  367. shape_1_per_frame61=
  368. shape_1_per_frame62=x = 0.5 + (x-0.5)/q2;
  369. shape_1_per_frame63=y = 0.5 + (y-0.5)/q1;
  370. shapecode_2_enabled=0
  371. shapecode_2_sides=12
  372. shapecode_2_additive=1
  373. shapecode_2_thickOutline=0
  374. shapecode_2_textured=0
  375. shapecode_2_num_inst=512
  376. shapecode_2_x=0.500
  377. shapecode_2_y=0.550
  378. shapecode_2_rad=0.26670
  379. shapecode_2_ang=0.00000
  380. shapecode_2_tex_ang=0.00000
  381. shapecode_2_tex_zoom=0.78740
  382. shapecode_2_r=0.000
  383. shapecode_2_g=0.100
  384. shapecode_2_b=0.550
  385. shapecode_2_a=1.000
  386. shapecode_2_r2=0.000
  387. shapecode_2_g2=0.000
  388. shapecode_2_b2=0.000
  389. shapecode_2_a2=0.000
  390. shapecode_2_border_r=1.000
  391. shapecode_2_border_g=1.000
  392. shapecode_2_border_b=1.000
  393. shapecode_2_border_a=0.000
  394. shape_2_init1=started = 0;
  395. shape_2_init2=t1 = 0.412; //seeds for pseudo random generator
  396. shape_2_init3=t2 = 0.4563;
  397. shape_2_init4=t3 = 0.6452;
  398. shape_2_init5=t4 = 0.2565;
  399. shape_2_per_frame1=rnd1 = if(equal(instance,0),t1,rnd1);
  400. shape_2_per_frame2=rnd2 = if(equal(instance,0),t2,rnd2);
  401. shape_2_per_frame3=rnd3 = if(equal(instance,0),t3,rnd3);
  402. shape_2_per_frame4=rnd4 = if(equal(instance,0),t4,rnd4);
  403. shape_2_per_frame5=rnd1 = 4*rnd1*(1-rnd1);
  404. shape_2_per_frame6=rnd2 = 4*rnd2*(1-rnd2);
  405. shape_2_per_frame7=rnd3 = 4*rnd3*(1-rnd3);
  406. shape_2_per_frame8=rnd4 = 4*rnd4*(1-rnd4);
  407. shape_2_per_frame9=t = .6;
  408. shape_2_per_frame10=t = (rnd1+time*t) - int(rnd1+time*t);
  409. shape_2_per_frame11=t = t + rnd2*0.1;
  410. shape_2_per_frame12=wh = rnd4*asin(1)*4;
  411. shape_2_per_frame13=wv = 0.25 + rnd3*0.1;
  412. shape_2_per_frame14=
  413. shape_2_per_frame15=d = 6; // makes the perspective impact
  414. shape_2_per_frame16=zoom = 1;
  415. shape_2_per_frame17=l = 1;
  416. shape_2_per_frame18=
  417. shape_2_per_frame19=// Kardan angles
  418. shape_2_per_frame20=
  419. shape_2_per_frame21=w1 = q3; // first rotation: clockwise in the desktop pane
  420. shape_2_per_frame22=w2 = q4; // rotation around vertical axis
  421. shape_2_per_frame23=w3 = q5; // rotation around horizontal axis
  422. shape_2_per_frame24=
  423. shape_2_per_frame25=
  424. shape_2_per_frame26=// definition of the 3D shape
  425. shape_2_per_frame27=
  426. shape_2_per_frame28=i = instance;
  427. shape_2_per_frame29=
  428. shape_2_per_frame30=my_x = t *(cos(wh)*sin(wv)*l)*4;
  429. shape_2_per_frame31=my_z = (-0.5 +(t-0.75)*(t-0.75))*cos(wv)*l*4;
  430. shape_2_per_frame32=my_y = t*(sin(wh)*sin(wv)*l)*4;
  431. shape_2_per_frame33=
  432. shape_2_per_frame34=
  433. shape_2_per_frame35=// 3D rotations
  434. shape_2_per_frame36=
  435. shape_2_per_frame37=x1 = cos(w1)*my_x + sin(w1)*my_y;
  436. shape_2_per_frame38=y1 = -sin(w1)*my_x + cos(w1)*my_y;
  437. shape_2_per_frame39=z1 = my_z;
  438. shape_2_per_frame40=
  439. shape_2_per_frame41=x2 = cos(w2)*x1 + sin(w2)*z1;
  440. shape_2_per_frame42=z2 = -sin(w2)*x1 + cos(w2)*z1;
  441. shape_2_per_frame43=y2 = y1;
  442. shape_2_per_frame44=
  443. shape_2_per_frame45=y3 = cos(w3)*y2 + sin(w3)*z2;
  444. shape_2_per_frame46=z3 = -sin(w3)*y2 + cos(w3)*z2;
  445. shape_2_per_frame47=x3 = x2;
  446. shape_2_per_frame48=
  447. shape_2_per_frame49=// perspective calculation
  448. shape_2_per_frame50=
  449. shape_2_per_frame51=p = tan(asin(1) + atan2(d+z3,sqrt(x3*x3 + y3*y3)));
  450. shape_2_per_frame52=d = sqrt(x3*x3 + y3*y3 + (z3+d)*(z3+d));
  451. shape_2_per_frame53=
  452. shape_2_per_frame54=rad = rad/d;
  453. shape_2_per_frame55=my_x = zoom*sin(atan2(x3,y3))*p;
  454. shape_2_per_frame56=my_y = zoom*cos(atan2(x3,y3))*p;
  455. shape_2_per_frame57=
  456. shape_2_per_frame58=x = 0.5 + my_x;
  457. shape_2_per_frame59=y = 0.5 + my_y;
  458. shape_2_per_frame60=
  459. shape_2_per_frame61=x = 0.5 + (x-0.5)/q2;
  460. shape_2_per_frame62=y = 0.5 + (y-0.5)/q1;
  461. shapecode_3_enabled=0
  462. shapecode_3_sides=12
  463. shapecode_3_additive=1
  464. shapecode_3_thickOutline=0
  465. shapecode_3_textured=0
  466. shapecode_3_num_inst=512
  467. shapecode_3_x=0.500
  468. shapecode_3_y=0.550
  469. shapecode_3_rad=0.05012
  470. shapecode_3_ang=0.00000
  471. shapecode_3_tex_ang=0.00000
  472. shapecode_3_tex_zoom=0.78740
  473. shapecode_3_r=0.000
  474. shapecode_3_g=0.020
  475. shapecode_3_b=0.110
  476. shapecode_3_a=1.000
  477. shapecode_3_r2=0.000
  478. shapecode_3_g2=0.000
  479. shapecode_3_b2=0.000
  480. shapecode_3_a2=0.000
  481. shapecode_3_border_r=1.000
  482. shapecode_3_border_g=1.000
  483. shapecode_3_border_b=1.000
  484. shapecode_3_border_a=0.000
  485. shape_3_init1=started = 0;
  486. shape_3_init2=t1 = 0.412; //seeds for pseudo random generator
  487. shape_3_init3=t2 = 0.4563;
  488. shape_3_init4=t3 = 0.6452;
  489. shape_3_init5=t4 = 0.2565;
  490. shape_3_per_frame1=rnd1 = if(equal(instance,0),t1,rnd1);
  491. shape_3_per_frame2=rnd2 = if(equal(instance,0),t2,rnd2);
  492. shape_3_per_frame3=rnd3 = if(equal(instance,0),t3,rnd3);
  493. shape_3_per_frame4=rnd4 = if(equal(instance,0),t4,rnd4);
  494. shape_3_per_frame5=rnd1 = 4*rnd1*(1-rnd1);
  495. shape_3_per_frame6=rnd2 = 4*rnd2*(1-rnd2);
  496. shape_3_per_frame7=rnd3 = 4*rnd3*(1-rnd3);
  497. shape_3_per_frame8=rnd4 = 4*rnd4*(1-rnd4);
  498. shape_3_per_frame9=t = .6;
  499. shape_3_per_frame10=t = (rnd1+time*t) - int(rnd1+time*t);
  500. shape_3_per_frame11=t = t + rnd2*0.1;
  501. shape_3_per_frame12=wh = rnd4*asin(1)*4;
  502. shape_3_per_frame13=wv = 0.25 + rnd3*0.1;
  503. shape_3_per_frame14=
  504. shape_3_per_frame15=d = 1.4; // makes the perspective impact
  505. shape_3_per_frame16=zoom = 1;
  506. shape_3_per_frame17=l = 1;
  507. shape_3_per_frame18=
  508. shape_3_per_frame19=// Kardan angles
  509. shape_3_per_frame20=
  510. shape_3_per_frame21=w1 = q3; // first rotation: clockwise in the desktop pane
  511. shape_3_per_frame22=w2 = q4; // rotation around vertical axis
  512. shape_3_per_frame23=w3 = q5; // rotation around horizontal axis
  513. shape_3_per_frame24=
  514. shape_3_per_frame25=
  515. shape_3_per_frame26=// definition of the 3D shape
  516. shape_3_per_frame27=
  517. shape_3_per_frame28=i = instance;
  518. shape_3_per_frame29=
  519. shape_3_per_frame30=my_x = t *(cos(wh)*sin(wv)*l);
  520. shape_3_per_frame31=my_y = (-0.5 +(t-0.75)*(t-0.75))*cos(wv)*l;
  521. shape_3_per_frame32=my_z = t*(sin(wh)*sin(wv)*l);
  522. shape_3_per_frame33=
  523. shape_3_per_frame34=
  524. shape_3_per_frame35=// 3D rotations
  525. shape_3_per_frame36=
  526. shape_3_per_frame37=x1 = cos(w1)*my_x + sin(w1)*my_y;
  527. shape_3_per_frame38=y1 = -sin(w1)*my_x + cos(w1)*my_y;
  528. shape_3_per_frame39=z1 = my_z;
  529. shape_3_per_frame40=
  530. shape_3_per_frame41=x2 = cos(w2)*x1 + sin(w2)*z1;
  531. shape_3_per_frame42=z2 = -sin(w2)*x1 + cos(w2)*z1;
  532. shape_3_per_frame43=y2 = y1;
  533. shape_3_per_frame44=
  534. shape_3_per_frame45=y3 = cos(w3)*y2 + sin(w3)*z2;
  535. shape_3_per_frame46=z3 = -sin(w3)*y2 + cos(w3)*z2;
  536. shape_3_per_frame47=x3 = x2;
  537. shape_3_per_frame48=
  538. shape_3_per_frame49=// perspective calculation
  539. shape_3_per_frame50=
  540. shape_3_per_frame51=p = tan(asin(1) + atan2(d+z3,sqrt(x3*x3 + y3*y3)));
  541. shape_3_per_frame52=d = sqrt(x3*x3 + y3*y3 + (z3+d)*(z3+d));
  542. shape_3_per_frame53=
  543. shape_3_per_frame54=rad = rad/d;
  544. shape_3_per_frame55=my_x = zoom*sin(atan2(x3,y3))*p;
  545. shape_3_per_frame56=my_y = zoom*cos(atan2(x3,y3))*p;
  546. shape_3_per_frame57=
  547. shape_3_per_frame58=x = 0.5 + my_x;
  548. shape_3_per_frame59=y = 0.5 + my_y;
  549. shape_3_per_frame60=
  550. shape_3_per_frame61=x = 0.5 + (x-0.5)/q2;
  551. shape_3_per_frame62=y = 0.5 + (y-0.5)/q1;
  552. per_frame_init_1=x1 = 2;
  553. per_frame_init_2=y1= 2;
  554. per_frame_init_3=z1 = 2;
  555. per_frame_1=q1 = aspectx;
  556. per_frame_2=q2 = aspecty;
  557. per_frame_3=wave_a = 0;
  558. per_frame_4=v = 0.5;
  559. per_frame_5=j1 = j1*0.95 + sqr(bass*4)*v;
  560. per_frame_6=j2 = j2*0.95 + sqr(mid*4)*v;
  561. per_frame_7=j3 = j3*0.95 + sqr(treb*4)*v;
  562. per_frame_8=
  563. per_frame_9=n = n + j1*0.0052;
  564. per_frame_10=n1 = n1 + j2*0.0052;
  565. per_frame_11=n2 = n2 + j3*0.0052;
  566. per_frame_12=
  567. per_frame_13=
  568. per_frame_14=q3 = n*0.01; // passing the 3 solid angles
  569. per_frame_15=q4 = n1*0.01;
  570. per_frame_16=q5 = n2*0.01;
  571. per_frame_17=
  572. per_frame_18=
  573. per_frame_19=// lorenz-attractor calc
  574. per_frame_20=a = 10;
  575. per_frame_21=b = 28;
  576. per_frame_22=c = 8/3;
  577. per_frame_23=dx1 = a*(y1-x1);
  578. per_frame_24=dy1 = x1*(b-z1)-y1;
  579. per_frame_25=dz1 = x1*y1-c*z1;
  580. per_frame_26=d = 1;
  581. per_frame_27=dd = sqrt(dx1*dx1 + dy1*dy1 + dz1*dz1);
  582. per_frame_28=x1 = x1 + d*dx1/dd;
  583. per_frame_29=y1 = y1 + d*dy1/dd;
  584. per_frame_30=z1 = z1 + d*dz1/dd;
  585. per_frame_31=
  586. per_frame_32=q11 = x1;
  587. per_frame_33=q12 = y1;
  588. per_frame_34=q13 = z1;
  589. per_frame_35=q14 = a;
  590. per_frame_36=q15 = b;
  591. per_frame_37=q16 = c;
  592. per_frame_38=q17 = d;
  593. warp_1=`shader_body
  594. warp_2=`{
  595. warp_3=`ret = GetPixel(uv)*0.7;
  596. warp_4=`}
  597. comp_1=`shader_body
  598. comp_2=`{
  599. comp_3=`ret = GetPixel(uv)*0.5 + GetBlur3(uv)*0.8;
  600. comp_4=`}
  601. comp_5=`
  602. comp_6=`