/genmotion:three-lookfrom genmotion
Builds the visual look of a Three.js video: colour pipeline, tone mapping, studio lighting, materials, backdrops, grain, fog, glows, and line art. Load when a frame looks flat, muddy, or cheap.
Ships in genmotion. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
direction picks the style family and writes the palette into the Direction block (references/style-families.md there has each family's colours, type and finish). This skill turns that into a renderer, lights, materials and a background that look finished, the way GenMotion's 3D templates do. The most common reasons a Three.js frame looks cheap are, in order: the colour pipeline (washed-out brand colours, muddy darks), no environment for glossy materials, a flat fill behind the subject, and too many materials.
Everything lives in one components/look.ts. Code: references/color-and-light.md (pipeline, environment, lights, materials), references/backdrops-and-finish.md (backdrop shader, glow, fog, grain, banding), references/line-art.md (strokes that draw on and erase), references/social-looks.md (the looks of short social launch films: a drifting mesh ground with a horizon glow, a travelling glow outline for the live control, soft-gloss app icons and coins, motion ghosts for fast objects, a daylight window shadow on paper). All of it compiles against three r185 and was checked on captured frames.
direction's family K, soft-gloss C, editorial G): a ground with edge light instead of a centred glow, glossy icons or coins, a glowing outline on the control that is live, paper in daylight.Not for: choosing the family or palette (direction), type (three-type), camera (three-camera).
export const LOOK = {
bg: "#07070c", bgLift: "#151826", // ground + the same hue a few steps lighter
text: "#ededef", muted: "#8a8a93", // 17:1 and 5.8:1 on the ground
accent: "#6e7bff", // the one brand colour: fills, glows, one word
exposure: 1.0,
};
#ffd23f on near-black is about 13:1); a low-contrast accent (< 4.5:1) never carries text under 60 px.#8a8a93 is the dimmest text allowed; on white, #5e606a (≈6:1). Text on footage or a glow sits on a scrim (0.45–0.65 opacity).The renderer is shared by every scene in the film, so every scene calls colorPipeline(renderer, mode) first; a scene that doesn't inherits the previous scene's settings.
| Mode | Tone mapping | Pick it for |
|---|---|---|
brand | NeutralToneMapping | 3D products and marks in a brand colour: hue survives (measured: a lime mark stays lime) |
cinematic | ACESFilmicToneMapping | Night, drama, music video, where rolled-off highlights are the look (measured: the lime mark goes pale yellow; a flat #6e7bff fill shifts to #8389e3) |
flat | none | Films with nothing lit: kinetic type, UI, whiteboard, 2D compositors |
toneMapped: false, or a ShaderMaterial) for type, UI, screenshots, footage, flat logos, floods, wipes and flashes: anything that must hit an exact hex. A flood that is a few levels off the next scene's background flickers at the cut.| Setup | Recipe (references/color-and-light.md §4) | Families |
|---|---|---|
| Product | studioEnvironment() + key 2.2 / fill 0.9 warm / rim 1.2 / ambient 0.5 | 3D product hero, brand sting |
| Night / neon | ambient 0.7 violet, key 2.8, cyan rim 1.6, pink fill 1.2, fog | Music video, tech |
| Dramatic | one side key 3–4, rim 2, ambient ≤ 0.15, dark room env | Reveals |
| Soft | hemisphere 1.5 + weak key | Friendly explainers |
| Flat | no lights; everything unlit | Type, SaaS UI, chat, whiteboard |
studioEnvironment() builds a grey room with four softbox panels and prefilters it with PMREM, once, in the builder: metal and gloss without an environment render black or plastic. This is the single biggest upgrade for any 3D object.studioEnvironment() for followingEnvironment() and lerp the key light over the ground's frames (references/color-and-light.md §7); check the hero material on both grounds.flat pipeline with a baked soft shadow plane under each piece, so its paper hex stays exact.Glossy plastic and coins: MeshPhysicalMaterial metalness 0.2–0.55, roughness 0.25–0.35, clearcoat 1. Soft toy-like gloss for app icons and tokens (soft-gloss C): softGloss() in references/social-looks.md (metalness 0.05, roughness 0.38, clearcoat 1 at 0.12, a little sheen) on rounded squircles and thick-rimmed coins. Polished metal: metalness 1, roughness 0.18–0.3, needs the environment. Matte: MeshStandardMaterial roughness 0.45–0.6. Type and UI: never lit (three-type). Extruded marks in three tones of the brand colour (face, bevel, side), with a bevel of 1–1.5% of their width. Reuse a handful of material instances across the film.
backdrop() gives a radial lift behind the subject, a 0.25–0.35 vignette and a 1–1.5% grain, in one draw that ignores the camera. The grain is in display units (added after the colour-space conversion; in linear light it boils) and static by default (a fixed seed): it dithers banding, survives the encode and keeps the file small. Moving grain is for film-look families only, ≤0.8% for web delivery; measured, the boiling linear-light version made a 30 s landing-page film 69 Mb/s. Brand identity (a sting, a logo end card, a brand guide) is the exception: the brand hex exact at centre and corners (±2 levels), no vignette, no grain. Coming into a brand end card from a lifted film, fade the lift, vignette and grain out over the hand-off (≥ 20f, grain last), never in one frame; a card that keeps any lift keeps a static 1–2% grain on it too, or the lift bands into rings after the encode (references/backdrops-and-finish.md, after the backdrop code).uFlood disc, out of the subject's screen point, with a hard edge (2–4 px) or a very wide one (≥ 30% of the short side), never a 40–80 px soft iris; paired with the re-light above and a scale change on the subject. Recipe: references/backdrops-and-finish.md §7; for a ground change at a cut, three-transitions' cover layer.Family-by-family finish (paper, HUD, film overlay, dither): references/backdrops-and-finish.md §6.
Diagrams, underlines, gauges and the whole whiteboard family use one ribbon whose vertices carry their position along the stroke; two uniforms (uReveal, uErase) draw it on and erase it back along its own path. Hand-drawn wobble comes from a seeded hash per line, two passes per stroke. Width is a uniform: when a drawing scales down (into an end card), set uScale so its lines keep ≥ 2 px on screen, or they alias. Code and the board timing grammar: references/line-art.md; a resizable outline with a gap and a colour sweep is three-assets' outline().
LOOK from the Direction block's palette. Pick the pipeline mode from the table.colorPipeline, scene.background = LOOK.bg, and backdrop() to every scene.studioEnvironment() and the family's light setup, in a shared function every scene calls.The 3D product hero set: brand tone mapping, the studio environment, the product lights, a lifted backdrop with grain, one glow, and an extruded mark in a glossy physical material. Compiled and captured; the lime holds.
import * as THREE from "three";
import type { ThreeSceneContext, ThreeSceneUpdate } from "@genmotion/three-engine";
import { fitCamera, PX } from "../components/stage";
import { backdrop, colorPipeline, glow, glowTexture, LOOK, productLights, studioEnvironment } from "../components/look";
import { extrudedMark } from "../components/logo"; // three-assets
import { MARK_D } from "../components/brand";
import { inOutSine, prog } from "../components/ease";
export default function buildScene(ctx: ThreeSceneContext): ThreeSceneUpdate {
const { scene, camera, renderer, width, height, durationInFrames: D } = ctx;
colorPipeline(renderer, "brand", 1.0); // every scene, first
fitCamera(camera, height);
scene.background = new THREE.Color(LOOK.bg);
const bg = backdrop(width / height);
scene.add(bg.mesh);
studioEnvironment(renderer, scene); // gloss and metal need something to reflect
productLights(scene);
const mark = extrudedMark(MARK_D, 420, 70, new THREE.MeshPhysicalMaterial({
color: LOOK.accent, metalness: 0.2, roughness: 0.28, clearcoat: 1, clearcoatRoughness: 0.15,
}), "hero-mark");
const halo = glow(glowTexture(), LOOK.accent, 7, "hero-glow");
halo.position.z = -1;
scene.add(halo, mark);
return ({ frame, time }) => {
mark.rotation.set(0.12, -0.45 + 0.6 * prog(frame, 0, D, inOutSine), 0); // 34 degree turn over the scene
halo.material.opacity = 0.5 + 0.1 * Math.sin(time * 2 * Math.PI * 0.2); // breathe at 0.2 Hz
mark.position.y = 3 * PX * Math.sin(time * Math.PI * 0.5); // float 3 px at 0.25 Hz
};
}
Family (direction) | Pipeline | Lights / env | Background |
|---|---|---|---|
| Beat-cut kinetic type | flat | none | Solid black or white; no grain |
| Soft-light SaaS | flat | none (UI is unlit) | White/creme with a 3–5% radial lift |
| 3D product hero | brand | product + studio env | White or near-black, lift, static 1% grain, one glow |
| One-shot film | flat | none | The world itself; moving grain overlay (8%, or ≤0.8% on the background for web), vignette 0.28 |
| Brand identity (sting, end card) | flat | flat or product | The exact brand hex, no vignette, no grain (a static ≤0.5% only if a brand gradient bands); depth from the mark's own shading |
| Chat-UI social | flat | none | The app's own colours, pixel-faithful |
| Whiteboard | flat | none | Paper white; strokes are the texture |
| Textured tactile | flat or cinematic | dramatic, if anything is lit | Dark HUD panels, dither, pixel-block wipes |
| Music video | cinematic | night/neon, fog | Night gradient, film overlay with grain and vignette |
| Brand guide | brand or flat | product for the 3D mark | The brand's own colour fields |
| Milestone | flat or brand | product if the number is 3D | Dark, a glow behind the number |
| Social title-card launch (K) | flat (brand if objects are lit) | none, or product for glossy objects | meshGround() with a horizon glow (dark), or white with the accent rising from the bottom; one glowOutline() on the live control |
| Soft-gloss C (icons, tokens) | brand | product + studio env, rim on | One flat colour or one gradient; motion ghosts on fast objects |
| Editorial G (paper, newsprint) | flat | none | Paper backdrop + windowShadowTexture(), or grey paper + halftone; one warm accent |
toneMapping (or none set) per scene: the film changes colour at a cut.brand mode.#07070c–#0b0b0c and #ededef.colorspace_fragment, or a float hash that stripes under SwiftShader. Copy the backdrop as written: integer hash, grain last.| Need | What | Fallback when it is missing |
|---|---|---|
| Judging the look | capture-frames, one frame per scene, side by side | None: a look is judged by looking |
| Palette and family | direction (Direction block) | Neutral ground + the brand's one colour as accent |
| Brand colours from a site | web-research | Ask the user for hex values |
colorPipeline and sets scene.background; one captured frame per scene, side by side, shows one palette, one light direction, one background family.ffprobe … format=bit_rate).validate passes.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
threejs, color-pipeline, tone-mapping, lighting, materials, post-processing
Other plugins' skills for the same job
npx claudepluginhub haxzie/genmotion --plugin genmotion35 skills in this plugin
/ad-qaThe pre-ship QA pass for a short-form or social ad, run on captured frames and the exported file: the exact frames to capture, eleven tests with pass criteria and fixes (hook frame, brand timing, mute, safe zones with a drawn overlay, captions, text size and contrast, pacing, CTA and ending, audio and loudness, ad codes, claims), then direction's critique rubric as the ship bar and a short report for the user. Every UGC owner ends here. Load it before telling anyone an ad is finished./ai-presenterPutting a person on screen in an ad when there is no footage: the user's own clip first, or a generated portrait driven by a lipsync model. Covers when not to use a face at all, the lipsync input spec (portrait, audio, neutral mouth), framing and headroom for 9:16, one take length (four seconds), lip-sync tolerance in frames, matching voice to face, the uncanny tells and the edit patterns that hide them, the seek-safe build on each engine, and the line between a synthetic presenter and a fabricated customer. Load it alongside a UGC owner, never instead of one./announce-featureThe 15 to 45 second feature announcement or changelog video, in the manner of Linear, Notion and Slack: what changed, why it matters, show it, where to find it. Covers naming the feature in the first six words, frame-budgeted beat sheets for 15, 20, 30 and 45 seconds with VO word budgets, the cursor, before-and-after and focus-push patterns with house timings, the CTA that points at the toggle, sound per interaction, and recuts for an in-app loop, a changelog embed and a vertical social clip. Load it for one feature or a small set, not a whole-product launch.