Live
Black Hat USAAI BusinessBlack Hat AsiaAI BusinessGeopolitics, AI, and Cybersecurity: Insights From RSAC 2026Dark ReadingThis International Fact-Checking Day, use these 5 tips to spot AI-generated contentFast Company TechPriced Out by AI: The Memory Chip Crisis Hitting Every ConsumerHacker News AI TopShow HN: AgentDog – Open-source dashboard for monitoring local AI agentsHacker News AI TopAI Enforcement Accelerates as Federal Policy Stalls and States Step In - Morgan LewisGNews AI USAGemma 4 and Qwen3.5 on shared benchmarksReddit r/LocalLLaMA[P] Gemma 4 running on NVIDIA B200 and AMD MI355X from the same inference stack, 15% throughput gain over vLLM on BlackwellReddit r/MachineLearningThe energy and environmental impact of AI and how it undermines democracy - greenpeace.orgGNews AI energyShow HN: A TUI for checking and comparing cloud and AI pricingHacker News AI TopAttorney General Pam Bondi pushed outAxios TechShow HN: Screenbox – Self-hosted virtual desktops for AI agentsHacker News AI TopMoonlake: Causal World Models should be Multimodal, Interactive, and Efficient — with Chris Manning and Fan-yun SunLatent SpaceBlack Hat USAAI BusinessBlack Hat AsiaAI BusinessGeopolitics, AI, and Cybersecurity: Insights From RSAC 2026Dark ReadingThis International Fact-Checking Day, use these 5 tips to spot AI-generated contentFast Company TechPriced Out by AI: The Memory Chip Crisis Hitting Every ConsumerHacker News AI TopShow HN: AgentDog – Open-source dashboard for monitoring local AI agentsHacker News AI TopAI Enforcement Accelerates as Federal Policy Stalls and States Step In - Morgan LewisGNews AI USAGemma 4 and Qwen3.5 on shared benchmarksReddit r/LocalLLaMA[P] Gemma 4 running on NVIDIA B200 and AMD MI355X from the same inference stack, 15% throughput gain over vLLM on BlackwellReddit r/MachineLearningThe energy and environmental impact of AI and how it undermines democracy - greenpeace.orgGNews AI energyShow HN: A TUI for checking and comparing cloud and AI pricingHacker News AI TopAttorney General Pam Bondi pushed outAxios TechShow HN: Screenbox – Self-hosted virtual desktops for AI agentsHacker News AI TopMoonlake: Causal World Models should be Multimodal, Interactive, and Efficient — with Chris Manning and Fan-yun SunLatent Space
AI NEWS HUBbyEIGENVECTOREigenvector

Jump to play: Building with Gemini & MediaPipe

Google Developers Blogby Gregory Karpiak, Chris Parsons, Suril ShahMarch 31, 20268 min read1 views
Source Quiz

The provided workflow streamlines motion-controlled game development by using Gemini Canvas to rapidly prototype mechanics like the MediaPipe Pose Landmarker through high-level prompting. Developers can refine these prototypes in Google AI Studio by optimizing for low-latency "lite" models and stable tracking points, such as shoulder landmarks, to ensure responsive gameplay. The process concludes by using Gemini Code Assist to refactor experimental code into a modular, production-ready application capable of supporting various multimodal inputs.

MARCH 24, 2026

Vibe-coding with Gemini makes it easier than ever to build highly interactive games and apps, leveraging the power of MediaPipe to unlock real-time input control. MediaPipe provides cross-platform, off-the-shelf ML solutions for vision, audio, and language optimized for real-time on-device performance.

To illustrate what you can build with MediaPipe, we are introducing a new showcase gallery in Google AI Studio. Recently updated with the Antigravity agent, Google AI Studio is the perfect tool for quickly going from a "what if" idea to a polished, playable experience.

In this blog, we will share fun and simple ways to build apps that interact with the physical world by combining Gemini intelligence with MediaPipe’s real-time sensing capabilities.

Prompt naturally in AI Studio

Visit AI Studio and simply describe your idea in natural language. Make sure to mention the MediaPipe capability you want in the mechanics of your app, for example, MediaPipe’s face, hand or pose tracking, or segmentation, etc. For the example below, we recommend selecting Gemini 3.1 Pro from the settings menu.

Example 1: Chrome dino game

Build a motion-controlled version of the classic Chrome Dino game using MediaPipe Pose Landmarker to transform user physical jumps into in-game actions.

  • Replicate the original 8-bit Chrome Dino aesthetic for user interface and game objects.- Implement a robust jump detection in spite of player distance to the camera. Also support pressing space bar to jump as fallback.- Jumps should be at least twice as high as the obstacles.- Include a secondary panel below the game for debugging and feedback, featuring live camera feed with pose landmarks overlay.

AI Studio generates a fully functional web app in minutes. Even with a simple prompt, Gemini is capable of adding details around your concept to make it more complete, such as:

  • Contextual logic: It understands the core mechanics of a side-scroller, like how gravity should affect the Dino's jump.
  • Hardware initialization: It writes the complex logic needed to initialize a device webcam and prepare it for motion tracking.
  • Edge case intelligence: It can suggest adding things like a "calibration" phase at the start to ensure the camera recognizes your neutral standing height before the game begins.

Example 2: Hair recoloring app

Build a hair recoloring app powered by MediaPipe Image Segmenter using multi-class selfie segmentation model.

  • Display camera preview.- Add a palette of 6 vivid colors (Neon Pink, Electric Blue, etc.) for user to select for hair recoloring under the preview. Select Neon Pink color by default.- Implement and apply realistic, efficient and robust hair recoloring in the preview.

Iterative refinements:

With the built-in preview, you can easily grant camera access and immediately test the physical or visual interaction without leaving the browser. If a feature isn't quite right, you "talk" your way through the fix.

If you encounter any errors or want to make improvements, just continue iterating in your conversation. We polished the apps published in AI Studio gallery over multiple turns of conversations, iteratively adding features, fixing bugs, and making optimizations. Even while you wait when Gemini is working, AI Studio provides helpful targeted suggestions for follow-ups.

Figure 3: AI Studio suggestions to enhance your app.

Leverage the full power of MediaPipe

The secret to making these apps feel magical is MediaPipe’s on-device ML/AI processing. As the pose estimation, hair segmentation and more happen entirely on your machine, there is virtually no latency. This is critical for an interactive game or app where a split-second delay makes the difference between clearing or hitting a cactus. This allows for rich, immersive experiences where the digital world reacts to your body in real-time.

MediaPipe offers a suite of ML solutions ranging from hand/face landmarks detection and semantic segmentation to audio classification and language detection. By combining Gemini and MediaPipe, developers can build apps that see, hear and sense the world easily.

Ready to start? Head to AI Studio’s MediaPipe showcase gallery to see what is possible and remix with any of our examples to add your own spin. Below are some additional ideas to explore right away.

Hand landmarks: Six-seven your hands

Build an app powered by MediaPipe where user showing hands triggers numbers 6 and 7 pulse slightly elevated over user left and right hands correspondingly.

  • Make 6 and 7 to be sized according to user hands size.- Apps should have a cute, cartoonish aesthetic.- Ensure smooth and robust rendering.

Face landmarks: Bubble Gum Blow Challenge

Create a Single/Multi-Player Bubble Gum Blow Challenge app using MediaPipe Face Landmarker.

  • Track mouth movements to detect whether users blow or not (e.g. mouth from open to shrink represents blow).- Each player has a digital pink bubble gum circle over the mouth that scales smoothly and dynamically.- The faster the player "puffs", the faster the bubble grows.- If a player stops blowing, the bubble slowly shrinks.- The first player whose bubble reaches a maxSize (e.g. 200px radius) triggers a "POP" animation and is declared the winner.- The game should have a cute, cartoonish aesthetic.- Ensure smooth and robust rendering.

Sorry, your browser doesn't support playback for this video

Figure 5: Bubble Gum Blow Challenge built with MediaPipe.

Face landmarks: Dalgona candy

Create a "Dalgona Candy" (Squid Game) web app using MediaPipe Face Landmarker.

  • The player "carves" the candy by moving nose tip along the shape's outline.- Start carving when the nose touches the shape outline.- As they trace, the nose will create a real carved hole/path (10-pixel).- If the nose tip deviates far from the shape's path (exceeds a 6-pixel threshold) or if the game timer (60s) runs out, the candy "cracks," and the player loses.- Show the user's camera feed (mirrored), the tracing shape, the carving path, and a countdown timer.- Display "WIN" if the player fully cuts the candy shape outline.- Dark "Squid Game" theme with green/pink accents and 3D rendering. Candy can be somehow transparent.

Sorry, your browser doesn't support playback for this video

Figure 6: Dalgona Candy Game built with MediaPipe.

Gesture recognition: Gesture bubble match

Create a "Double Hand Match" web game with MediaPipe Gesture Recognition that requires players to match specific hand gestures with both hands simultaneously. The game should recognize any combination of two gestures from the following list: 👍, 👎, ✌️, ☝️, ✊, 👋.

  • Patterns appear inside bubbles that spawn at the bottom of the screen and float toward the top.- A successfully match pops the bubble and award points.- If a bubble reaches to top of the screen without being matched, the player loses points.- Each round lasts 30 seconds, concluding with a final score display.- Game should have a cute and cartoon style with "juicy" animations. The background is a camera mirrored view.

Sorry, your browser doesn't support playback for this video

Figure 7: Double Hand Match built with MediaPipe.

Face detection: The Red Light, Green Light game

Let's build "Red Light, Green Light", a Room-Scale Multiplayer game where players stand across the room and try to sneak up to the webcam.

The Mechanics:- Lobby: Detect all the players

with MediaPipe Face Full-Range detector and lock in tracking boxes. Start the game when button is pressed.- Green Light: The game screen flashes green, and players physically walk toward the camera.- Red Light: The screen flashes red. The game detects any players that move more than a few pixels. If so, they get big red "X" over their face and are eliminated.- Win condition: The game continues for multiple rounds until only player is left.

Sorry, your browser doesn't support playback for this video

Figure 8: Red Light, Green Light Game built with MediaPipe.

Oh, and one more thing, we've also upgraded MediaPipe face detection to support long range distance, which was used in the above “Red Light, Green Light” game for room-scale tracking of players far away.

We have a robust roadmap to bring more upgrades to MediaPipe this year. We are committed to empowering you in creating sophisticated, interactive applications using Gemini and MediaPipe more efficiently than ever.

We are excited to see what you build! Publish your apps in AI Studio and share with us at [email protected] for a chance to get featured in the showcase gallery.

Acknowledgements

Special thanks to the contributors who make MediaPipe solutions possible: Sebastian Schmidt, Chenchen Tang, Alex Kanaukou, Gregory Karpiak, Suril Shah, Erin Walsh, Mike Taylor-Cai, Chris Parsons, Sachin Kotwani, Jianing Wei, and Matthias Grundmann

Previous

Next

Was this article helpful?

Sign in to highlight and annotate this article

AI
Ask AI about this article
Powered by Eigenvector · full article context loaded
Ready

Conversation starters

Ask anything about this article…

Daily AI Digest

Get the top 5 AI stories delivered to your inbox every morning.

Knowledge Map

Knowledge Map
TopicsEntitiesSource
Jump to pla…geminimodelproductapplicationmultimodalGoogle Deve…

Connected Articles — Knowledge Graph

This article is connected to other articles through shared AI topics and tags.

Building knowledge graph…

Discussion

Sign in to join the discussion

No comments yet — be the first to share your thoughts!