1. Project goal
Build an original 3D browser eye-makeup studio where the player paints eyeshadow, liner, brows and lashes onto a live 3D face. The player's job in one sentence: a client sits down, the player loads a brush with powder from a palette, layers colour onto the eyelid, blends it, adds liner and lashes, then submits the finished look and gets a short in-character comment on it. The appeal is tactile control — brush size, opacity, stroke texture and how much powder is on the tip all change the mark that lands — plus a before/after result worth sharing. Not a timed game and not a dress-up doll: it is a precision painting tool with a light client framing.
2. Visual style
Perspective camera orbiting a single head, by default a near-frontal close-up of one eye so the lid fills the frame and individual lash strands resolve; the player can orbit, pan and zoom out to the whole face. Soft, diffuse studio lighting on a plain warm beige backdrop with one soft shadow falling off the head; no room, props or furniture. Skin is pale warm ivory with a slightly translucent, waxy subsurface quality and a gentle pink flush on the lids, nose bridge and cheeks — stylised and doll-like, not photoreal. Brows and lashes are many individual alpha-mapped hair strands, each catching light separately, and they stay the crispest elements in frame. Shallow depth of field behind the focus plane. UI is a flat screen-space layer in a cosmetics-brand register: hairline borders, thin serif headings, cream panels, near-black fills for selected states, one muted orange-brown accent, no heavy filled buttons. Painted makeup must read as pigment sitting on skin — edgeless washes for blended shadow, hard thin lines for liner, visible sparkle for glitter.
3. World and scene
One scene: a head model on a backdrop, with an overlay UI. States the player moves through — title screen with the bare face as hero art; a client intro card naming today's client; the live editor; the finished-result view with the eyes open and an in-character comment; a share/save step. Eye pose is switchable inside the editor between closed, looking down and open, because each pose exposes a different part of the lid, and the view target is switchable between whole face, both eyes, left eye and right eye. The editor must also let the player copy the finished work from one eye to the other.
4. Asset list
Separate replaceable 3D models, each with a stable identifier:
- client_head: the paintable subject. A stylised human head with modelled eyelids, eye globes, brow ridge, nose and lips. It must carry a dedicated, non-overlapping UV region for each eye area at high texel density, because all makeup is painted into that texture space. Needs blendshapes or bone poses for closed / looking-down / open eyes.
- eyelash_set: upper and lower lash geometry as hair strands or alpha cards, parented to the lids so they move with the eye pose. Separate false-lash variants that can be added on top.
- eyebrow_set: brow hair geometry, separately replaceable from lashes.
- tool_icons_3d (optional): small models of the implements — fluffy round brush, small brush, fine liner brush, sponge tip, cotton swab, brow pencil — if the UI shows them as rendered thumbnails rather than flat icons.
- palette_pan: the round powder pan the player taps to load the brush, with pressable powder cakes.
Keep procedural, not as models: the paint mask and all pigment layers, the glitter sparkle shader, the backdrop and its shadow, depth of field, the brush cursor marker, and every 2D UI panel.
5. Gameplay and feedback
Single pointer is always the tool: one-finger drag or left-drag paints. Navigation is separate — two-finger drag or right-drag pans, pinch or wheel zooms, two-finger twist or middle-drag orbits the camera. Core loop: pick a colour from the palette row (mattes in a brown progression, plus glitter and gold shimmer, plus a colour wheel for free choice) → tap the powder pan to load the brush, where more taps load more pigment and two colours loaded together mix on the tip → stroke over the lid, where opacity builds with repeated passes → brush with no powder on it to blend and soften existing pigment → switch tools for liner, brows, lashes or a cotton swab to lift pigment → undo one step or start over → submit. Brush settings the player can change, each visibly altering the mark: diameter in millimetres, strength as a percentage, stroke type (smooth, fluffy, grainy, stippled, dry-brush), tip shape (round, tapered, flat), paint offset relative to the fingertip, and glitter intensity. Feedback: a live stroke-preview swatch of exactly what the current settings produce; a powder-level readout on the brush (empty / just right); loose powder that falls onto the cheek when the brush is overloaded or pressed hard, which the result commentary notices; the client asking the player to change eye pose when a step needs it. End state: eyes open, full look visible, a short spoken line from the client about the result — including a gentle critique when powder was left on the cheek — then save image or share. Desktop and touch must both be complete: everything reachable by one-pointer paint plus the modifier navigation above.
6. Technical implementation
Web, three.js with a WebGL2 renderer, static same-origin build, no runtime server. Perspective camera with orbit/pan/zoom constrained so the head cannot be lost off-screen. PBR-ish skin material with a subsurface tint; hair strands as alpha-tested cards or curves with per-strand shading. Makeup is painted into render-target textures layered over the skin albedo — at minimum separate layers for shadow pigment, liner, brow and glitter, so each tool can be undone and lifted independently; paint along the pointer path in UV space with the configured brush kernel, never by deforming geometry or swapping whole textures. Blending with an unloaded brush is a local blur/smear pass on the existing pigment layer, not a new deposit. Model slot contract: `client_head`, `eyelash_set` and `eyebrow_set` load as GLB into fixed transforms; the head must arrive Y-up, facing +Z, with the inter-pupil distance normalised, the per-eye UV islands present and the three eye poses exposed as named morph targets. Swapping a generated head must not require editing the paint pipeline. Full interface localisation (the reference ships Japanese plus English, Traditional Chinese and Thai); layout must work in a narrow portrait viewport and on desktop. Model complexity tuned by measured frame time on a mid-range phone, not a fixed triangle budget.
7. Completion criteria
- Loading the brush from the pan, stroking the lid and seeing pigment build up over repeated passes, with the stroke preview matching the mark that lands.
- Brush settings visibly change output: diameter, strength, the five stroke types, the three tip shapes and glitter intensity are each distinguishable on screen.
- Blending with an unloaded brush softens existing pigment instead of adding more; the cotton swab lifts it.
- Liner, brow pencil and lashes each work on their own layer, undo steps back one action, and "copy to the other eye" mirrors the finished work.
- Camera can orbit, pan and zoom from a whole-face view to a macro view where single lash strands are resolvable, and eye pose switches between closed, looking down and open with the paint staying correctly attached to the lid.
- Reference frames to match: the bare-face title state; a macro editor state with a soft peach wash blended across the mobile lid and the brush-settings sheet open; the finished state with eyes open, full look applied and the client's comment about powder on the cheek.
- Replacing `client_head` with a different generated GLB keeps painting, posing and all tools working without code changes.
- Runs as a static build with a visible preview URL, editable source and documented start command.