Interactive Fruit Fly Smell-Learning Simulation in the BrowserInteractive Fruit Fly Smell-Learning Simulation in the Browser
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
I put a fruit fly's smell-learning circuit in a browser, then gave it a little room to explore.
In Whiff, you can pair a scent with food and watch the fly's learned preference change. Open the brain inspector and you can see the activity while the simulation runs. I wanted people to be able to poke at it and see what changed, so the teaching section has lights and knobs you can adjust yourself.
The wiring comes from FlyWire, with simplified neurons and an artificial movement controller. The 3D world and interface are my code, built with TypeScript and Three.js, with simulation work in Web Workers.
Try teaching a scent, then reverse which scent means food: https://whiff-theta.vercel.app
The first image is an illustrated cover. The second is the actual app. Screenshots and technical notes: Whiff case study
Post image
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started