◀ VibeCruiser

Face mask interaction

A free particle demo — play it in your browser, no install. Webcam 3D particle mask: MediaPipe face/hand tracking + three.js GPGPU particles, dissolve & swarm, single-file HTML.

by @Xiayu717 · Xiayu717/Face_mask_interaction on GitHubLANG HTML★ 1HOSTED ON XIAYU717.GITHUB.IOUPDATED 4 Nov 2026

Made this, @Xiayu717? See how many people played it → or use email

▶ Play full screen ▲ Vote: free account with email ▲ Or sign in with GitHub

GitHub may ask you to sign in, then to let VibeCruiser “Verify your GitHub identity” and “Act on your behalf”. We only read your profile and email, and never post anything.

Open the live demo Source on GitHub

From the README

用摄像头把一张 3D 面具 贴合到你脸上,面具由 16384 颗 GPU 粒子 组成;张开手掌,面具会从下巴开始被溶解啃食,散落的粒子跟着掌心聚成会旋转的鱼群,握拳再重新长回脸上。

纯前端、单个 HTML 文件,无需安装、无需构建、无需后端。

面部贴合:MediaPipe FaceLandmarker(478 点)实时解出头部位姿,面具跟随头部转动、远近缩放。 粒子面具:GPUComputationRenderer 在显卡上跑 16384 颗粒子(可调到 65536),采样自面具模型的三角面。 溶解消散:张开手掌时面具从下巴往头顶被"啃掉",一道发光前沿扫过整张脸(约 1.6 秒),粒子跟着前沿脱队。 手势鱼群:保持张开,粒子被掌心吸引成一颗会旋转的球状群体,跟着手移动;不会越聚越小、也不会被拽成一条线。 五状态机:面具贴合 → 消散中 → 粒子散落 → 鱼群态 → 重组中,另有握拳重组、手离开自动归位。 六色渐变:每颗粒子沿「冰青 → 蓝紫 → 紫 → 玫红 → 暖橙 → 淡金」往返流动,大小也在 0.45–1.65 倍之间随机。 头部遮挡:面具绕到脑后的部分(比如防毒面具的头带)会被"头"挡住,看起来是真的戴着。 模型接入:面板里可以上传本地 .glb / .gltf,或者从网址加载,还能左右转 90° 摆正朝向。

Read the full README on GitHub →

Built something like this? Submit your vibe — free account, takes a minute. How listing works.

More like this

Made this?

Claim it: create a free account, then press CLAIM THIS in the cruiser. Put the badge below in your README or on your demo page first; that link is how we know it's yours.

Your project is on the cruise, loaded live from your own site. Put the badge in your README or on the demo page: it shows your live play count, it links back to this page, and everyone who lands here is one click from running the real thing.

On VibeCruiser

How listing, the badge and claiming work →