3 ms·
Is this a common demo effect? There's a very similar effect on http://generalrelativity.org/BitmapStuff.swf http://generalrelativity.org/BitmapStuff.swf (it's b
by walrus 15y ago
Is this a common demo effect? There's a very similar effect on http://generalrelativity.org/BitmapStuff.swf http://generalrelativity.org/BitmapStuff.swf (it's been there since 2007).
- DanielRibeiro 15y agoThe source code is really small and quite readable. From the source: var homeDX=this.homeX-this.x; var homeDY=this.homeY-this.y; var homeDistance=Math.sqrt(Math.pow(homeDX,2) + Math.pow(homeDY,2)); var homeForce=homeDistance*0.01; var homeAngle=Math.atan2(homeDY,homeDX); It seems it is just using gravitational like force, where a point is attracted to its original position. So I guess it is a more common effect for particles.
- swah 15y agoSprings?
- CountHackulus 15y agoDefinitely a common effect. I remember seeing this kind of thing in the demoscene a lot of times. In fact I remember seeing a larger evolution of this recently. What they did is used smooth particle hydrodynamics to simulate water, but then also use the text mesh as a local attractor. So the water would drip onto the invisible mesh, but then it would stick to the text just a bit more than normal allowing the words to form. Link: http://directtovideo.wordpress.com/2011/05/03/numb-res/ http://directtovideo.wordpress.com/2011/05/03/numb-res/