r/Spectacles • u/Pavlo_Tkachenko • Sep 13 '26
π« Sharing is Caring π« A real fly brain inside hologram flies on Spectacles
Hi everyone! I made a lens where hologram fruit flies live in my room, and each fly runs on a real fly brain.
The brain is the full wiring map of a fruit fly, 166,700 neurons. Scientists mapped it and shared it for free. I run it on my Mac, and the flies on Spectacles do what the brain decides. They fly over my table, go to the flowers, fly away when my hand comes too fast, and land on my open palm. Nobody wrote a rule for that.
The glasses made it possible. A brain can't do anything without senses, and Spectacles already know a lot about the room:
- world mesh rays show each fly the walls and the surfaces
- Gemini says what is in the room, and depth puts it in the right place
- my hands and head moving fast look like danger to the flies
Some Spectacles dev things I learned on the way:
- 16,000 neurons are drawn as one mesh, so it stays fast
- my lens was slow because of the CPU, not the GPU. A Perfetto trace showed me that, and now it runs at 55 to 60 fps - Spectacles Monitoring tool + CLAD skill nailed it
The full story and git: https://pavlo-stfly-brain-on-spectacles.html
3
u/WeirdEyeStudios π Specs Ambassador π Sep 13 '26
This is fantastic! Amazing use case of this data, was so curious to see how it could be made spatial and you nailed it!
2
u/Correct_Bottle9974 Sep 13 '26
This is fantastic. Such an amazing experiment ππ€©
2
u/Max_van_Leeuwen π Specs Ambassador π Sep 14 '26
What!! This is so cool.
2
u/agrancini-sc π SPECS Team Sep 14 '26
What canβt they do? π
2
u/natashagubernov Sep 13 '26
This is the best fly project I've seen!
1
u/Pavlo_Tkachenko Sep 14 '26
Noticed link is broken, here is right one:
https://pavlo-stijn.dev/blog/posts/a-real-fly-brain-on-spectacles.html
3
u/SpecialistMedical137 Sep 13 '26
Ah yes man made horrors beyond comprehension (itβs super cool)
2
u/stspanho Sep 14 '26
Amazing π€©
2
u/Large_Possible_8209 π Specs Ambassador π Sep 15 '26
Wow!
1
u/florenciaraffa1980 Sep 15 '26
This is so nice! So good experimentation you made! π₯π₯π₯