Coders - Water effect: You need to make clips, not demos!

ZX Time #14
Coders                                 
---------------------------------------
 [byJIb|deaz(TN)er|sdc
                       (Nikolai Dvornik)
                                        
Water effect              
 ------------              
 (flash-color is desirable!)       
                                        
 In general, I'm already tired of the monotony in
demoscene, no one has any ideas -
just monochrome chunks or 3D animations (!)
based on them (vector graphics res-
nekt)!  There's no point, the stagers are dumb,
speck lives!..                       
                                        
 All emphasis must be placed on color
and the development of expanding its range to ZX!
After allStellarwas really cool, it’s a pity -
pointless.   You don't need to do demos
(let them be made by idiots), and the clips! But
nobody remembers that smart people have long
made a certain number of graphics modes
work with whom -simply, and without special
clock-byte costs (not counting
multi and tricolor) !REALTIME RULES!     
                                        
 A couple of them are gigaskrin and flashcolor,
oxepehho complement the multicolor! But even
and without its use they look decent
but!                                     
                                        
 In short, this article demonstrates
the above based on the 'water' effect +
'drops'!                                
                                        
 A little theory:                     
                                        
 Consider the ynpyrux oscillation model
liquids, to a first approximation. We believe
molecules have one degree of freedom z,
directed perpendicular to the screen.    
                                        
 Each such molecule moves along
Oz axis according to the law                       
 z(T+dT)=z(T)+V(T)*dT+A(T)*T*T/2
         V(T)=Z(T)-Z(T-dT)/dT dT->0     
 A(T)=F1+F2+...+Fi/m,where       
                                        
 Fi - force acting from outside
one of the neighboring molecules.              
                                        
 m-mass of the molecule                   
                                        
 It is clear that for this model          
 Fi=-k(Zi(T)-Z(T),              
 k-elasticity coefficient       
                                        
 It can be seen that, substituting, we get:      
                                        
z(T+dT)=2*z(T)-z(T-dt)+(Z1(T)+...      
 +Zi(T)-iZ(t))*k*T^2/2m
                                        
 with i=8 for our flat liquid,
assuming k*T^2/2m, equal to w, approximating, by-
beamz(T+dT)=w*(Z1(T)+...Z8(T)-Z(T-dt)!
                                        
 We form a 32/24 buffer (attributes), according to
lag - the height changes inwithin
0..15.                                  
                                        
 Next we throw a couple of drops into the buffer
3x3 in size with rn coordinates. By gender
using the written formulas, we recalculate the entire
fer, then with a simple linear blur,
we sausage the same buffer and output it to
corresponding Flash palette!  And all c
started! The source is in the application, everything seems to be
it is clear. Agree, it looks powerful,
especially from a distance of >3 meters from the monitor
tora :-)                               
                                        
 All spec rules and that's it              
                                        
we collect the same buffer and output it to
corresponding Flash palette!  And all c
started! The source is in the application, everything seems to be
it is clear. Agree, it looks powerful,
especially from a distance of >3 meters from the monitor
tora :-)                               
                                        
 All spec rules and that's it              
                                        
 - - -                  
                                        
In preparing this article, it was
used 0.75 vodka;  listened to
Slipknot, Killswitch Engage, Mashroom-
head, CoalChamber, Sepultura, Soul Fly,
Appocalyptica.                          
                                        
 - - -                  
                                        
Editor's note: for the most part, lec-
author's sika saved                  

Share your thoughts about the article