Version 1.1.0 · 2026-11-23 · live reference builds: /experiments/3d-funnel on FunnelDNA (Product Launch) and
/experiments/3d-funnel?example=webinar (Webinar Funnel).
You are building a single-page spatial funnel: one WebGL canvas, a few authored scenes, a camera that moves between them as the visitor scrolls, and real HTML stages on top. The 3D sells the product; the HTML does the funnel. You produce editable source (HTML/CSS/JS or the host's components), never a rendered video.
1. Ask first (one message, then wait)#
- Offer: product, price(s), options/variants, the one upsell and its price, guarantee if any.
- Proof you really have: reviews, results, press, test data. "None" is a fine answer; you will leave proof slots empty and say so.
-
Brand: colours, fonts, logo; or a FunnelDNA brand (
brand_theme). - Assets: product photos, CAD/glTF, dimensions. No model? You will build the product from simple procedural geometry.
- Devices and traffic: phone share, slowest device that matters, ad platform.
- Stages: confirm hero → 3 story stations → opt-in → order → upsell → confirmation, or the host's own recipe.
- Platform: where checkout and leads live (ClickFunnels or other), and whether a hosted checkout URL exists.
Never invent testimonials, ratings, results, logos, client names, scarcity, deadlines or prices. If the user gives no proof, the story's objection station shows an empty proof slot labelled as such.
2. Map the FunnelDNA recipe to scenes#
Pull the funnel recipe (get_funnel_recipe, e.g. product launch / two-step order) and the skill rules (get_skill,
get_rules). Each recipe page becomes one or more scenes:
| Recipe beat | Scene type | Camera / product idea | HTML on top |
|---|---|---|---|
| Hook / hero | arrival |
product hero, backlight, slow idle turn | headline, sub, primary CTA, "skip to offer" |
| Mechanism / benefits (×3) | narrative |
one station per benefit: exploded view, close-up, cutaway | kicker, h2, 2–3 points, Continue |
| Objection / proof | objection |
the part the objection is about | the objection in the buyer's words, the answer, the proof slot |
| Opt-in | optin |
calm, centred product | labelled form, consent, privacy line |
| Order | order |
product reacts to options (colour, size) | options, quantity, order summary, checkout button |
| Upsell | upsell |
the add-on joins the product | explicit price, accept and decline buttons of equal clarity |
| Confirmation | confirmation |
product with chosen options | summary, next steps, nothing claimed that the server didn't confirm |
Write each scene as data:
FunnelScene = { id, type, label, cameraPose: { position: [x,y,z], target: [x,y,z], fov },
product: { explode, cap, spin, kit, halo /* whatever parameters your product rig has */ },
assets: [], narrativeBlocks: ["section-id"], interactions: ["continue" | "optin-form" | ...], nextStates: ["next-id"] }
Keep camera moves short and readable: one idea per station, the product always in frame, no path through the product.
2b. Webinar funnels: one place per step#
A webinar funnel is not a product on a plinth: it is a sequence of moments in time with a fork in it. Make the world one connected place the visitor walks through, each funnel step a room or a spot in it, so the camera's path is the funnel's path. The reference build is a venue:
| Funnel step | Place | What carries the step in 3D | HTML on top |
|---|---|---|---|
| Registration | Street outside the venue | Marquee with the title and the session time; a lit poster beside the doors | the opt-in form, the session facts, a demo note |
| Confirmation | Lobby (the doors open as you register) | Your ticket floating centre stage; "what you'll learn" plaques; a calendar board | add-to-calendar (it advances), the three points |
| Reminder sequence | A hall with a window and a station clock | The sky walks through the days, the clock hands sweep, one envelope lands per reminder | each reminder's subject line and purpose |
| Showtime (the fork) | The end of the hall | Two lit doorways: LIVE ROOM with an ON AIR light ahead, REPLAY to the side | two equal choices: attended / missed it |
| Live room | Auditorium | Seats, stage, a slide screen that changes per teaching point, a chat wall | one section per teaching point |
| Replay (no-shows) | A corridor off the hall | One screen per chapter, an end screen | the chapters, a note that no recording plays |
| Offer | On stage (live) / the replay end screen | The stack rising as lit slabs; the offer slide | stack, sample price, the mock checkout |
| Enrolled | Aerial view of the building | The walked route lit on the floor, the other branch faint | the summary, what a live funnel does next |
Rules for a webinar build:
- Make the branch legible. The fork is a place, both doors are visible, the rail shows both branches (the one not taken dimmed, still switchable until checkout) and the floor line lights only the route walked.
- Time is a parameter. Drive sky, clock and envelopes from scene parameters, so scrolling between reminders is time passing. Never a ticking countdown: no resetting timers, no "seats left".
- Sample is labelled where it appears: a room count, chat messages and the session time on a demo are tagged "sample". Chat shows questions, never praise. With a real brand, show a real count or none.
- The offer is the same on both branches (same price, same terms); only its staging changes.
3. The state machine (required)#
FunnelSession = { currentStage, optinStatus: "none"|"captured", lead: { email /* masked */ },
cart: { ...options, qty }, checkoutStatus: "idle"|"simulated_success"|"verified", upsellChoice: null|"accepted"|"declined", completed }
One pure transition(session, event) function, unit-tested, owns every change. Guards:
- Story stages are always open. Order needs a valid opt-in. Upsell needs
checkoutStatussuccess. Confirmation needs success and an upsell answer. - Validation lives in the machine, not only in the form.
- A placed order's cart is frozen; the upsell is answered once.
- Demo:
CHECKOUT_SIMULATEDsetssimulated_success, and the UI says "simulated" on the button, the order stage and the confirmation. Production: hand off to the platform's hosted checkout; continue to the upsell only after the server verified the provider's payment event (CHECKOUT_VERIFIED). Never restore a "verified" flag from the browser. - Webinar:
WebinarSession { currentStage, registration, lead, calendar, path: null|"live"|"replay", checkoutStatus, completed }. Everything after the registration needs a valid one; the room and the teaching points needpath = live, the replay needspath = replay; the offer needs a path; "enrolled" needs checkout success; the path is frozen after enrolling. The open stages are always the route in order, so scroll progress maps straight onto the route's scenes. - Persist the session per tab (sessionStorage) with only a masked email; restore through a sanitizer.
The URL hash names the stage (
#tdf-offer): Continue pushes history, scrolling replaces it; reload/back/forward land on the requested stage if its guard passes, else the furthest open stage.
4. Build rules#
-
HTML is the funnel. Every headline, price, form, button and legal line is semantic HTML. The canvas is
aria-hidden. No critical text in 3D. -
One canvas, sticky behind the stage sections; scroll position → a float progress → interpolated scene state;
explicit Continue buttons and a stage rail as well as scroll. Locked stages are
hidden(not just disabled) so they can't be scrolled or tabbed into. -
Look: physically based materials with an environment map (e.g. Three.js
RoomEnvironmentvia PMREM), a warm key, two coloured rim lights, a fading floor and contact shadow instead of shadow maps, bloom only on a few emissive accents, ACES tone mapping, gentle idle motion. One product, one stage, a lot of darkness. -
One engine, many worlds. Keep the renderer, camera rail, quality budget, pause/dispose and the controller
(scroll, history, storage, fallback) shared; an example adds only its world (
build→apply(params, time)) and its state machine. Scenes are data: camera pose (with an optional phone pull-back) and numeric parameters the world reads. - Interiors: check that the straight line between neighbouring camera poses passes through doorways, not walls; ceilings are one-sided planes so an aerial ending can see into every room.
- Stack: on a site with a bundler, React Three Fiber + Drei are fine. On importmap/no-build sites use Three.js directly, pinned to an exact version from a CDN, with a small hand-written tween (exponential smoothing) instead of a timeline library.
5. Performance budget (measure, don't promise)#
- Load Three.js only on the funnel page, after first paint, and only when WebGL 2 exists (
import()on demand, no preload). - Prefer procedural geometry; if you need a model, one Draco/Meshopt-compressed glTF under ~1.5 MB, KTX2 textures.
- Device pixel ratio cap: 1.5 on phones, 1.75 elsewhere. MSAA 2× phones / 4× desktop on a half-float target.
- Adaptive quality: if the median frame is over ~26 ms, step down (DPR 1, no bloom); under ~15 fps at the lowest tier, switch to the 2D version. Pause rendering when the canvas is off screen or the tab is hidden.
- Measure: median and p90 fps on a mid-range phone or a 4× CPU-throttled mobile emulation, report the numbers.
6. Accessibility and fallbacks (ship all three)#
-
Reduced motion (
prefers-reduced-motion): no camera travel, the canvas snaps to each stage's keyframe and only draws on change; no smooth scrolling; the stage rail becomes a vertical stepper. -
No WebGL / too slow /
?renderer=2d: the same HTML funnel with a 2D (SVG/CSS) product that changes per stage. Every action still works. -
Keyboard: Back/Next buttons and ← → step through the open stages (not while typing);
Continue moves focus to the next stage's heading; forms have labels,
aria-invalidand linked error text; a polite live region announces unlocks; 44 px targets; visible focus.
7. Deliver#
- Storyboard: a table of scenes (id, type, camera, product state, HTML copy, interaction, next).
- Asset list: what is procedural, what is supplied, sizes.
- Source: the stage HTML, the scene data, the state machine with tests, the WebGL world, the 2D fallback, styles.
- Performance budget and the measured numbers.
- A "what's real" note: working, simulated, needs integration (checkout handoff, verified payment event, lead capture).
Telemetry (if the host has it): stage entered, continue clicked, opt-in submitted (valid or not), order started, checkout simulated/verified, upsell accepted/declined, funnel completed, fallback shown. Never send personal data.
Self-check before you hand it over#
- No invented proof, prices, scarcity or deadlines; empty proof slots are labelled; sample counts and chat say "sample".
- Webinar: the branch is visible in 3D and on the rail; no-shows reach the same offer; no countdown anywhere.
- Can't reach order without a valid opt-in, upsell without checkout success, confirmation without the upsell answer (tested).
- Simulated checkout is labelled on the button, the order stage and the confirmation.
- Reload, back and forward restore a safe stage; no raw email is stored.
- Keyboard-only and reduced-motion runs complete every step; the 2D version completes every step.
- Three.js is not loaded on other pages; DPR capped; fps measured at phone width.