Interactive Demo

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.

12 Narrative Functions
4 Pipeline Slots
5 Location Groups
RT Bias Engine

How NCP Works

From story beat to rendered scene in four steps.

01

Narrative Trigger

A story beat fires — ordeal, revelation, confrontation...

02

Default Slots

NCP fills 4 slots: location, lighting, effects, camera

03

Brand Match

Scrya API finds the best-fit campaign for this scene

04

Bias Applied

Slots shift toward brand affinities — lighting warms, location aligns

ncp_pipeline.py
# 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.

01

Obtaining

Hero acquires key item/knowledge

02

Departing

Journey from familiar to unknown

03

Returning

Triumphant return home

04

Ordeal

Crisis that tests resolve

05

Revelation

Hidden truth uncovered

06

Confrontation

Direct clash with antagonist

07

Negotiation

Tense bargaining under pressure

08

Crisis

Everything goes wrong at once

09

Celebration

Victory achieved, moment of joy

10

Betrayal

Trusted ally turns enemy

11

Discovery

Exploration reveals the unexpected

12

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.

urban_outdoor rural_outdoor indoor_formal indoor_casual dramatic

Lighting

Brand affinity weight 0-1 applied to lighting mood. Warm golden for cozy brands, cool blue for tech.

warm_golden cool_blue neutral high_contrast natural_daylight

Effects

Up to 3 effects per scene — smoke, rain, lens flare. Brands can push cinematic or gritty style.

smoke rain lens_flare soft_bokeh dust

Camera

Shot type and angle. Currently fixed defaults — reserved for future brand influence.

wide_shot medium_shot close_up over_shoulder low_angle

Brand Influence in Action

See how different brands shift the same narrative function to match their aesthetic.

Cozy Coffee Brand

Location
urban_outdoor indoor_casual
Lighting
neutral warm_golden
Effects
none soft_bokeh

Action Movie Studio

Location
indoor_casual dramatic
Lighting
neutral high_contrast
Effects
none smoke, lens_flare

Outdoor Adventure Brand

Location
indoor_casual rural_outdoor
Lighting
neutral natural_daylight
Effects
none wind, dust

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.