toxi, to ArtificialIntelligence
@toxi@mastodon.thi.ng avatar

Nothing new, but maybe a little unusual: Using boids as alternative to Lloyd relaxation and/or Poisson-disk sampling. The boids here are using only two behaviors: local separation, plus a randomized attractor to create global disturbances. Cell density could also be varied by spatially adjusting the separation distance between boids. Overall convergence/relaxation can be much faster than shown here...

#Boids #Voronoi #Algorithm #PoissonDisk #ComputationalDesign #Physics #Simulation #GenerativeDesign #ThingUmbrella #TypeScript

toxi,
@toxi@mastodon.thi.ng avatar

Since some of you seem to like that above animation, here's an interactive version where you can disturb the cells via mouse/touch:

https://demo.thi.ng/umbrella/boids-voronoi/

toxi, to Typography
@toxi@mastodon.thi.ng avatar
toxi, to generative
@toxi@mastodon.thi.ng avatar

Re-added/ported more agent behavior building blocks today, incl. path following and path attraction (both for open/closed geometries). In total there're now 7 freely combinable behaviors, each weighted and so usable as soft/hard constraint.

Here's an example of path following (here a Hilbert curve) and separation only...

Several hundred agents (represented as colored circles) are moving along a 2D path (Hilbert curve). Each agent also has a white line overlay to visualize its current velocity vector

toxi,
@toxi@mastodon.thi.ng avatar
toxi, (edited ) to generative
@toxi@mastodon.thi.ng avatar

Boids now with modular behavior system, incl. newly added field-based 3-sensor Braitenberg vehicle steering behavior. In this case the field is an SDF (via https://thi.ng/geom-sdf), which is used as obstacle map with soft boundary. I'm amazed how well (and without any further help) the lil' buggers are managing to escape these concave corners...

toxi,
@toxi@mastodon.thi.ng avatar
toxi, to generative
@toxi@mastodon.thi.ng avatar

Been debugging boids & behavior combinations all evening! Happy to say, I think all force contributions are fixed now (classic off-by-one error was leading to an initially subtle but increasingly obvious directional bias), and I can focus again on experimenting with some new amazing emergent behaviors... Aside from that, maybe this also qualifies for (Day 1: Particles)?!

Btw. This is just a variation of this example project:

https://demo.thi.ng/umbrella/boid-basics/

...which was created as part of last year's series:

https://mastodon.thi.ng/@toxi/111308439597090930

toxi, (edited ) to random
@toxi@mastodon.thi.ng avatar

Note to ADHD brain: Get your act together and finish work on S-TRACE, one of maaany unfinished projects started last year... A mini thread of some WIPs...

This thought was triggered by @meuns's post about Radiance Cascades:
https://mastodon.gamedev.place/@meuns/111489830458139216

1/x

villares, to python Portuguese
@villares@ciberlandia.pt avatar
villares, to python Portuguese
@villares@ciberlandia.pt avatar

Hey friends, which is better/faster? Are they the same?

triangles_conc = np.concatenate((a, b, c), axis=1).reshape(-1, 2)<br></br><br></br>triangles_stack = np.hstack((a, b, c)).reshape(-1, 2)<br></br>

Context: Drawing "boids" as triangles.

triangles = np.hstack(<br></br>        (left_points, right_points, head_points)).reshape(-1, 2)<br></br>with py5.begin_shape(py5.TRIANGLES):<br></br>    py5.vertices(triangles)<br></br>

villares, to python Portuguese
@villares@ciberlandia.pt avatar

Preciso trabalhar no doutorado, mas acabei de achar um lance massa que preciso estudar para mostrar 28/11 no Sesc na atividade de simulações biológicas #Boids #Flocking #Python #pygame #Emergent #Simulation #PyNBoids https://github.com/Nikorasu/PyNBoids

surabax, to Lisp
toxi, (edited ) to opensource
@toxi@mastodon.thi.ng avatar

- A form and motion study inspired by marbling techniques like French curls and (Japanese style), but also by the beautiful shapes and movements of Von Kármán vortices and the space-filling skin patterns of Bornella anguilla (aka the "Circle Packing" nudibranch)...

Update: Original 07/07 launch aborted, new release details TBC...

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • magazineikmin
  • Youngstown
  • khanakhh
  • ngwrru68w68
  • slotface
  • ethstaker
  • mdbf
  • everett
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • cisconetworking
  • rosin
  • provamag3
  • Durango
  • GTA5RPClips
  • Leos
  • tester
  • tacticalgear
  • InstantRegret
  • normalnudes
  • osvaldo12
  • cubers
  • anitta
  • modclub
  • megavids
  • lostlight
  • All magazines