Narrative Content
Pipeline
See how brand influence shapes game scenes in real-time. The NCP translates narrative functions into visual elements — then applies brand affinity bias to every slot.
How NCP Works
From story beat to rendered scene in four steps.
Narrative Trigger
A story beat fires — ordeal, revelation, confrontation...
Default Slots
NCP fills 4 slots: location, lighting, effects, camera
Brand Match
Scrya API finds the best-fit campaign for this scene
Bias Applied
Slots shift toward brand affinities — lighting warms, location aligns
# 1. Story beat fires
narrative_fn = "ordeal"
# 2. NCP fills default visual slots
default_slots = {"location": "urban_outdoor",
"lighting": "neutral",
"effects": [],
"camera": "medium_shot"}
# 3. Scrya finds a matching brand campaign
brand_match = scrya.match(narrative_fn, player_geo="US")
# 4. Slots shift toward brand affinities
biased_slots = {"location": "indoor_casual",
"lighting": "warm_golden",
"effects": ["soft_bokeh"],
"camera": "medium_shot"} 12 Narrative Functions
Each narrative function maps to default visual slots. When a story beat fires, the pipeline knows which location, lighting, and effects to use.
Obtaining
Hero acquires key item/knowledge
Departing
Journey from familiar to unknown
Returning
Triumphant return home
Ordeal
Crisis that tests resolve
Revelation
Hidden truth uncovered
Confrontation
Direct clash with antagonist
Negotiation
Tense bargaining under pressure
Crisis
Everything goes wrong at once
Celebration
Victory achieved, moment of joy
Betrayal
Trusted ally turns enemy
Discovery
Exploration reveals the unexpected
Sacrifice
Giving up something precious
Pipeline Slots
Every scene is built from four visual slots. Brands influence each one through affinity-weighted bias.
Location
Brands can bias scenes to preferred location groups that match their aesthetic.
Lighting
Brand affinity weight 0-1 applied to lighting mood. Warm golden for cozy brands, cool blue for tech.
Effects
Up to 3 effects per scene — smoke, rain, lens flare. Brands can push cinematic or gritty style.
Camera
Shot type and angle. Currently fixed defaults — reserved for future brand influence.
Brand Influence in Action
See how different brands shift the same narrative function to match their aesthetic.
Cozy Coffee Brand
Action Movie Studio
Outdoor Adventure Brand
See NCP in a Real Game
Presidential Dilemma uses NCP to generate narrative scenes with brand-influenced visuals.
Game Features
- Narrative political simulation
- Procedural dilemmas
- Faction dynamics
NCP Integration
- Scene generation
- Visual pipeline
- Brand-influenced shots
Tech Stack
- FastAPI + Temporal
- ComfyUI + CUDA
- Supabase + R2
Want Your Brand in the Pipeline?
Start with $2.00 CPM. Eight affinity types. Real-time analytics. Live placement simulator.