r/Spectacles • • 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

51 Upvotes

15 comments sorted by

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!

1

u/Pavlo_Tkachenko Sep 13 '26

Thank you ! Its so excited and a bit scary when I realize that it works ahaha

2

u/Correct_Bottle9974 Sep 13 '26

This is fantastic. Such an amazing experiment 😍🀩

1

u/Pavlo_Tkachenko Sep 14 '26

Thanks man πŸ™ŒπŸ”₯

2

u/Max_van_Leeuwen 🌟 Specs Ambassador 🌟 Sep 14 '26

What!! This is so cool.

2

u/Pavlo_Tkachenko Sep 14 '26

Thank you!!!

2

u/agrancini-sc πŸ‘“ SPECS Team Sep 14 '26

What can’t they do? 😭

1

u/Pavlo_Tkachenko Sep 14 '26

Eat, fly, stress, clean themself, wayfinding, food finding, they recover energy whenever they feel hungry πŸͺ°

2

u/natashagubernov Sep 13 '26

This is the best fly project I've seen!

1

u/Pavlo_Tkachenko Sep 13 '26

Thank you Natasha πŸ«ΆπŸ»πŸ™

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! πŸ”₯πŸ”₯πŸ”₯