--- name: 3d-toy-character description: Cute 3D toy-style character videos - rounded vinyl-like characters with big heads and short limbs, smooth pastel materials, soft studio lighting, contact shadows and squash-and-stretch acting - rendered to MP4 at 9:16 or 16:9. Use for 3D mascots, friendly assistants, characters reacting to UI and soft 3D social clips. Not for flat 2D mascots (use character-pose-system), clay textures (use claymation-look) or realistic 3D. license: MIT compatibility: HyperFrames (Node 22+, FFmpeg) with Three.js; Blender optional for high-end renders. --- # 3D Toy Character Make short videos where a soft, rounded, toy-like 3D character acts out an idea. It should feel tactile, friendly and slightly playful, like a premium vinyl toy under studio lights. This is a visual style skill, not a general 3D modelling skill. ## Options | Option | Default | Notes | |---|---|---| | format | vertical 1080×1920 | or landscape 1920×1080, square 1080×1080 | | duration | 15 s | 8–30 s works best | | tone | playful | `calm` (gentle easing, longer holds), `playful` (default), `hyper` (bigger squash, faster beats, more camera moves) | | character | a round toy character | or the user's brand character (match its silhouette and colours) | ## Brief (answer before planning) 1. What does the character want, or what is the one message? 2. What is the hook in the first second (pose plus title)? 3. What goes wrong or surprises, and what is the payoff? 4. What line closes the video? Then write a beat list (time, what we see, the character's action, text, sound) whose durations add up to the target. ## Reads sheet (write it with the beat list) For every beat, write the one thing the viewer must understand ("the robot can't fly", "the cache missed") and how long it stays readable. One read at a time. Text floors: a label stays at least 0.8 s, a sentence about 0.3 s per word once fully on screen. If the text won't fit the time, cut words rather than speed up. ## Motion discipline - Motion is causal: the character reacts to something on screen, and every action has a cause and a consequence. - Characters are never frozen: they breathe, blink and shift weight while waiting. That idle is acting, not filler, so keep it small and irregular. - Avoid twinning: the arms don't move as mirror images, and the eyes, antenna and body don't all start on the same frame. Offset parts by 2–4 frames. - Overshoot and squash belong to the character (landings, pops, surprise). The camera and text move with smooth ease-outs. - Keep one main direction of travel per scene, and carry the character or a prop across scene changes instead of crossfading. - Add a 0.3–0.75 s held pose right before the payoff, so it lands. ## Style rules (always) These make it this style; keep them even when changing colours or story. 1. Head is 55–70% of total height, because big heads read as cute and toy-like. 2. Every form is rounded, with no sharp edges, so the silhouette reads as a few soft masses. 3. Material is smooth vinyl: roughness 0.35–0.5, light clearcoat, metalness 0. Metal or gloss reads as a product render. 4. There is always a soft contact shadow under the character, which is what makes it read as 3D. 5. Lighting is a large soft key, a weak fill and a thin rim. No hard shadows. 6. Every action goes anticipation, move, overshoot, settle, so it has weight. ## Defaults (change freely) Colours, character design, background, camera angle, durations and text. When the user gives a brand palette or a character, theirs wins. Order of precedence: user's brand or spec, then the explicit request, then the defaults in this file. ## Setup (once) ```bash node -v # needs 22+ ffmpeg -version # needs any recent build npx hyperframes init my-video --non-interactive --resolution portrait && cd my-video # landscape for 16:9 ``` Inside an existing empty folder use `npx hyperframes init . --non-interactive --resolution portrait`. Then replace the generated `index.html` with the template below. Three.js and fonts load from CDNs inside the composition (a Google Fonts `` works in renders); nothing else to install. Blender is only for the offline route. ## Decide before building Settle these four things and state them back to the user in one line before writing code. 1. **Aspect:** 9:16 (1080×1920) for Reels, Shorts and TikTok; 16:9 (1920×1080) for YouTube, web and slides. Default is 9:16. 2. **Route:** see the table. Default is Three.js. 3. **Character:** silhouette, primary colour, one accessory at most (antenna, ears, scarf). If the user has a brand character, match its silhouette and colours. 4. **Beats:** 3–6 beats for 15 s. One action per beat. | Need | SVG + GSAP | Three.js (default) | Blender | |---|:-:|:-:|:-:| | Simple mascot reactions | yes | yes | yes | | Real turn or rotation in depth | no | yes | yes | | Soft lighting and contact shadows | faked | yes | yes | | Glossy or clearcoat materials | faked | yes | yes | | Fast iteration, renders anywhere | yes | yes | slow | | Cinematic quality, complex geometry | no | partly | yes | Choose the simplest route that keeps the look the user asked for. If the character never turns, SVG with gradients can pass. If it turns, or the lighting is the point, use Three.js. ## Visual language **Proportions** - Head: 55–70% of total height. The head can be the whole body. - Eyes: large, simple and set low on the face, about 55–60% down. Each eye gets one big and one small white highlight. - Limbs: short, thick and rounded; mitten hands; no visible joints. - No sharp edges. Bevel or round everything, so the silhouette reads as a few rounded masses. - Face parts sit on the head surface, not inside it. For a sphere head of radius r scaled by sz in depth, put eyes, mouth and visor at z ≈ r·sz plus the part's own depth. Zoom into a snapshot to check that nothing is buried. **Materials** - Smooth vinyl or plastic with roughness around 0.35–0.5 and a light clearcoat (about 0.3). No texture unless asked. - Never metallic. Metalness stays at 0. **Lighting** - One large soft key light from upper left, a weak fill from the opposite side (about 30% of the key), and a thin rim light from behind (about 60%). - A soft contact shadow under the character. This one detail makes it read as 3D. - Avoid hard point-light shadows, dramatic low-key lighting, heavy bloom and coloured horror lighting. **Default palette** (defaults, not the style): - Background: pale, slightly cool pastel (for example `#e8f0f7`), or a soft two-tone gradient. - Character: one saturated but soft primary colour, with a lighter belly or face patch. - Accents: one contrasting pastel for props and UI. - Shadows: tinted toward the background colour, never pure black. ## Animation language Motion should be soft, slightly exaggerated, and physically believable. Every action goes anticipation → main move → overshoot → settle. | Action | Duration | Notes | |---|---|---| | Micro reaction (blink, glance) | 0.2–0.5 s | blinks every 2–4 s, irregular | | Gesture (wave, clap, point) | 0.5–1.2 s | arm leads, body follows 2–3 frames later; on a big head, tip the raised arm forward (`rotation.x ≈ 0.8`) so the hand passes in front of the head, and wave with the arm away from props | | Hop | 0.5–0.8 s | squash 0.08 s, rise, fall, land with squash, settle | | Entrance | 0.8–1.5 s | scale pop (0 → 1.1 → 0.95 → 1) ending in a squash; "rise from below" only reads if a visible floor or frame edge hides the character first | | Head tilt (curious) | 0.3–0.4 s | 6–10°, hold, return | | Idle | continuous | breathing scale ±2% on a 2–3 s cycle | - Keep volume: when the body stretches 10% taller, make it about 5% narrower. - The contact shadow reacts: smaller and lighter as the character rises, full on landing. - Don't bounce everything. Use overshoot on entrances and landings only, and keep idle motion calm. ## Composition - **9:16:** character in the middle third, face between y 500 and 1100. Text and faces stay inside x 60–960, y 270–1250. The bottom ~670 px is covered by platform UI, so captions go above it. - **16:9:** character on one third and text or UI on the other two-thirds, or the character centred with text below. Keep 5% margins. - Camera: slightly above eye level, 30–40° field of view, no extreme wide angle. - Framing: at a 32° field of view the visible height is about 0.57 × camera distance. For a character about 3.3 units tall, camera z ≈ 17–19 makes it about 700 px tall in 9:16. Shift the camera target about 0.45 units sideways when a prop shares the frame, and keep the feet above y ≈ 1300. **Text** - Bold rounded sans (e.g. Nunito 800 from Google Fonts), 64–90 px titles in 9:16, line-height at least 1.15 on multi-line captions. - Text needs 3:1 contrast or better (`hyperframes check` enforces it). If a brand colour fails on the brand background, keep it for shapes, fills and the character, and use a darker shade of it, or near-black ink, for the text. - Set the hidden starting state of text with `gsap.set(...)` outside the timeline, then animate it in on the timeline. (`tl.set` at time 0 triggers a lint warning.) ## Make it eye-catching A character on an empty background reads as a test render, not a video. Every output needs these: - **A set, not a void.** Give it a sky gradient (CSS behind a transparent canvas) plus one simple set piece in the same vinyl material (a rooftop edge, a desk, a floating island) and a few props for scale. - **Three depth layers:** far (clouds, hills, fog), mid (the set), near (props or particles passing the camera). Each moves at its own speed when the camera moves. - **A moving camera.** Push in on the hook, follow the action, pull back for the payoff. Key it with smooth keyframes, and let it follow the character when it leaves the set: ```js const smooth = (x) => x * x * (3 - 2 * x), mix = (a, b, x) => a + (b - a) * x; const keys = (t, ks) => { if (t <= ks[0][0]) return ks[0][1]; for (let i = 1; i < ks.length; i++) if (t <= ks[i][0]) return mix(ks[i - 1][1], ks[i][1], smooth(Math.min(1, (t - ks[i - 1][0]) / (ks[i][0] - ks[i - 1][0])))); return ks[ks.length - 1][1]; }; // camera.position.y = keys(t, [[0, 1.8], [1.6, 2.2], [10, 3.6], [11.4, 9], [13.4, 1.8]]); same for x, z and the look-at target ``` - **One glowing accent.** An emissive bulb, screen or prop in the accent colour, plus a small point light, at the story's key moment (the "aha"). - **Secondary motion in every beat:** drifting clouds, dust puffs on impact, sparkles or stars, antenna and ear wobble after moves. - **A designed title moment.** Bold rounded text on a white rounded card with a soft drop shadow (this also fixes contrast on busy skies), popping in with overshoot. Take it off screen before the character moves through that area. - **An ending that loops:** the last pose and framing match the first. - **Quality gate:** if any snapshot would look like a placeholder (flat background, frozen character, nothing moving), it isn't done. ## Build: Three.js route (default) One HTML composition. HyperFrames tells Three.js which time to draw through the `hf-seek` event, so every frame is computed from time and nothing runs on its own clock. ```html
Hello, I'm a toy!
``` Layer text and UI as HTML or SVG above the canvas and animate them on the registered `tl` (HyperFrames requires that timeline even when all motion is in Three.js). Rules for this route: - `data-duration` on the root is required. Three.js scenes have no length of their own. - Never animate from `requestAnimationFrame`, `setAnimationLoop`, `Date.now` or `Math.random`. Compute every value from `t`. - Load any models or textures before the first render. A GLTF character with clips is seeked with `mixer.setTime(t)`. ## Build: other routes - **SVG + GSAP (no depth):** draw the character as SVG ellipses with radial-gradient fills (light upper left, darker lower right), a white elliptical specular highlight on the head, a blurred ellipse as the contact shadow, and the same timings as above using GSAP eases (`back.out(1.7)` for entrances, `power2.out` up and `power2.in` down for hops). Register one paused timeline on `window.__timelines["main"]`. - **Blender (offline quality):** model with subdivision surfaces and bevels, use a Principled BSDF with roughness 0.4 and clearcoat 0.3, three-point area lights and a shadow-catcher floor, and render a PNG sequence or MP4 at the target aspect. Bring it into HyperFrames as a `