haque d+r
-
Reconfigurable House 2.0
2 months ago -
Remote
3 months ago -
Burble London
3 months ago
Activity
-
2 months agoHaque d+r tagged Reconfigurable House 2.0. -
3 months agoHaque d+r commented on brain coral simulationthanks for the nice words.
the algorithm is quite simple (and may be totally wrong) but its based on bits and pieces extracted from e.g.these links: haque.tumblr.com/post/25464678
it's pretty much a normal particle system with the following position modifier which makes particles have both short-range attractive and long-range repulsive forces (i.e. here attraction is proportional to 1/d^2 and repulsion is proportional to 1/d^3):
distance = sqrt(sq(dx) sq(dy));
if (distance > 2.0){ // to avoid infinity
if (distance < minDistance){
minDistance distance;
closest = i;
c[i].connect();
}
attraction = attractionConst ant / (distance * distance);
repulsion = repulsionConsta nt / ( distance * distance * distance);
attraction -= repulsion;
xChange = attraction * dx;
yChange = attraction * dy;
totalXChange = xChange;
totalYChange = yChange;
}
-
3 months agoHaque d+r tagged brain coral simulation.
Video Request
Open Requests
- Vimeo: About / Blog / Developers / Forums / Help! / Site Map
- Legal: © 2008 Connected Ventures, LLC. All rights reserved. / Terms & Conditions / Privacy Statement



Top
Bottom