๐ Neural Illumination (Gemini 3.1 pro preview model)
Reimagining How Humans Learn to Code
๐ Inspiration โ What If Learning Didnโt Feel Like the Past?
Programming education has barely evolved.
We still learn code through:
- Static textbooks
- Flat video tutorials
- Silent IDEs that donโt see, hear, or understand us
But we asked a different question:
What if learning to code felt like stepping into the future?
Inspired by futuristic interfaces like Iron Manโs JARVIS and Star Trekโs Holodeck, we imagined a learning environment where:
- An AI companion doesnโt just answer questions โ it understands you
- Code isnโt just text โ it becomes living, interactive 3D objects
- Your focus, posture, and emotions actively shape your learning experience
When Google announced Gemini 3, capable of unified text, vision, and code reasoning, we realized this vision was finally achievable.
โThe best way to predict the future is to invent it.โ โ Alan Kay
Thatโs how Neural Illumination was born.
๐ก What Is Neural Illumination?
Neural Illumination is an immersive 3D, AI-powered learning platform that redefines how students learn Python programming.
Instead of reading about code, students experience it โ spatially, visually, and interactively.
This isnโt just a new UI. Itโs a new learning paradigm.
๐ค Meet Luna โ Your AI Learning Companion
Luna is not a chatbot.
She is an autonomous AI avatar that exists inside the 3D world.
She:
- Walks, wanders, and follows you naturally
- Listens to your voice, not just your keyboard
- Tracks your learning progress and gives real-time feedback
- Speaks back using natural neural voice synthesis
Powered by Gemini 3 and ElevenLabs, Luna feels less like software โ and more like a mentor whoโs present with you.
๐ฎ Voice-Controlled Holographic Programming
Say:
โHey Luna, show me a sphere.โ
And instantly:
- Gemini 3 generates Python code
- The code runs entirely in your browser via WebAssembly (Pyodide)
- A glowing 3D hologram materializes in front of you
Abstract code becomes tangible reality.
This single interaction bridges one of the biggest gaps in education:
Understanding how code becomes behavior.
๐๏ธ AI Mentor Mode โ Learning That Sees You
With Mentor Mode, Luna uses your webcam to become an AI learning coach:
- Detects distraction (e.g., phone usage)
- Notices poor posture or slouching
- Encourages you when youโre focused and engaged
Instead of passive surveillance, Mentor Mode provides gentle, supportive guidance, powered by Gemini Vision analyzing frames in real time.
Learning becomes responsive, not rigid.
๐ Adaptive, Gamified Python Curriculum
Neural Illumination isnโt just visually impressive โ itโs educationally solid.
Students progress through:
- 30+ structured challenges, from Hello World to recursion
- AI-evaluated submissions with personalized feedback
- XP, streaks, levels, and adaptive difficulty
This is not a demo or proof-of-concept. Students can genuinely learn Python end-to-end inside the platform.
๐ Mood-Responsive Learning Environments
Learning isnโt purely logical โ itโs emotional.
Using facial expression analysis, Neural Illumination dynamically adapts the environment to your mood:
- Cyber
- Nature
- Desert
- Rainforest
- Iceland
Your emotional state shapes the world around you, creating a calmer, more supportive learning experience.
๐ ๏ธ How We Built It
Architecture Overview
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Neural Illumination โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Frontend: React 19 + TypeScript + React Three Fiber โ
โ โโโ 3D Rendering: Three.js + WebGL โ
โ โโโ Voice Input: Web Speech API โ
โ โโโ Python Runtime: Pyodide (WebAssembly) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ AI Layer: Google Gemini 3 Pro Preview โ
โ โโโ Chat & Reasoning โ
โ โโโ Vision (Mentor Mode & Mood Detection) โ
โ โโโ Code Generation โ
โ โโโ Submission Evaluation โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Voice Output: ElevenLabs Neural TTS โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
No backend servers. No installations. Everything runs directly in the browser.
๐๏ธ Development Journey
Week 1 โ Foundations
- Built the 3D spatial world using React Three Fiber
- Designed the CyberRoom environment
- Integrated Gemini for conversational AI
Week 2 โ Luna Comes Alive
- Created the 3D avatar
- Implemented autonomous movement with a leash system
- Added neural voice synthesis
Week 3 โ Multimodal Magic
- Integrated Gemini Vision
- Built the voice-to-code hologram pipeline
- Embedded Pyodide for Python execution
Week 4 โ Polish & Learning Design
- Added five dynamic environments
- Implemented mood detection
- Built the full Python curriculum
- Added XP, streaks, and adaptive difficulty
โ๏ธ Key Technical Decisions
| Choice | Why It Mattered |
|---|---|
| React Three Fiber | Declarative, scalable 3D with React |
| Pyodide | True Python execution without servers |
| Gemini 3 | Unified text, vision, and code reasoning |
| ElevenLabs | Human-like voice for emotional presence |
โ ๏ธ Challenges & Solutions
Rate-Limiting (Vision APIs) โ Exponential backoff + auto-pause analysis
Voice Recognition Errors โ Phonetic correction and synonym mapping
Pyodide Cold Start โ Lazy loading with progress feedback
Low-End Device Performance โ Automatic quality tiers (Low / Medium / High)
Jittery Avatar Movement โ Velocity dampening + snapping logic
๐ What Weโre Proud Of
๐ฅ A First-of-Its-Kind Integration
3D spatial computing + multimodal AI + in-browser Python + neural voice โ all in one cohesive platform.
โจ The โWowโ Moment Is Real
โHey Luna, show me a red torus.โ โ Code generated โ Python executed โ 3D object appears
It feels magical โ and it works every time.
๐ง Luna Feels Alive
She walks, watches, reacts, and teaches. She feels like a companion, not a tool.
๐ Real Educational Impact
This isnโt a gimmick. Itโs a complete, structured learning system.
๐ Lessons Learned
Technical
- Multimodal AI simplifies entire system design
- WebAssembly unlocks powerful browser experiences
- Good 3D UX takes iteration and restraint
Product
- Build the wow moment first
- Constraints create better architecture
- AI companions need personality, not just intelligence
๐ฎ Whatโs Next
Short-Term
- Multiplayer collaborative learning
- 3D data structure visualizers
- Voice-to-code IDE
- Mobile AR via WebXR
Long-Term
A spatial AI education platform for:
- Mathematics
- Chemistry
- Physics
- Beyond
๐ค Open Source Vision
We plan to open-source the core engine, enabling educators and developers to create their own AI companions, curricula, and immersive learning worlds.
๐ Final Thought
Neural Illumination isnโt just about learning Python.
Itโs about reimagining how humans learn โ when AI doesnโt replace teachers, but stands beside students.
Built With
- elevenlabs
- eslint
- gemini3pro
- pyodide
- react
- react-three/drei
- react-three/postprocessing
- tailwind
- three.js
- typescript
- vite
- webspeech
Log in or sign up for Devpost to join the conversation.