# Stage 3: Character Reference Sheet Generation

Tested prompts for generating character turnaround sheets with NanoBanana.

## Prompt 1: WITH Reference Image

Use when you have a reference photo from Yandex search.

```
Create a professional character reference sheet based strictly on the uploaded
reference image. Use a clean, neutral plain background and present the sheet
as a technical model turnaround while matching the exact visual style of the
reference (same realism level, rendering approach, texture, color treatment,
and overall aesthetic).

Arrange the composition into two horizontal rows.
Top row: four full-body standing views placed side-by-side in this order:
front view, left profile view (facing left), right profile view (facing right), back view.
Bottom row: three highly detailed close-up portraits aligned beneath the full-body row
in this order: front portrait, left profile portrait (facing left), right profile portrait (facing right).

Maintain perfect identity consistency across every panel. Keep the subject in a
relaxed A-pose and with consistent scale and alignment between views, accurate
anatomy, and clear silhouette; ensure even spacing and clean panel separation,
with uniform framing and consistent head height across the full-body lineup and
consistent facial scale across the portraits. Lighting should be consistent across
all panels (same direction, intensity, and softness), with natural, controlled
shadows that preserve detail without dramatic mood shifts. Output a crisp,
print-ready reference sheet look, sharp details.
```

## Prompt 2: WITHOUT Reference Image (Description Only)

Use when generating character from text description.

```
Create a professional character reference sheet of [CHARACTER DESCRIPTION HERE].
Use a clean, neutral plain background and present the sheet as a technical model
turnaround in a photographic style.

Arrange the composition into two horizontal rows.
Top row: four full-body standing views placed side-by-side in this order:
front view, left profile view (facing left), right profile view (facing right), back view.
Bottom row: three highly detailed close-up portraits aligned beneath the full-body row
in this order: front portrait, left profile portrait (facing left), right profile portrait (facing right).

Maintain perfect identity consistency across every panel. Keep the subject in a
relaxed A-pose and with consistent scale and alignment between views, accurate
anatomy, and clear silhouette; ensure even spacing and clean panel separation,
with uniform framing and consistent head height across the full-body lineup and
consistent facial scale across the portraits. Lighting should be consistent across
all panels (same direction, intensity, and softness), with natural, controlled
shadows that preserve detail without dramatic mood shifts. Output a crisp,
print-ready reference sheet look, sharp details.
```

## Prompt 3: Wardrobe Change

Keep the same character, change only the outfit.

```
Keep the same character sheet layout. Keep their physical characteristics and
expression the same. Change the outfit to [outfit description or reference to image].
```

## API Call Example

```python
from scripts.laozhang_proxy import call_nanobanana_laozhang

# With reference image
sheet_data, sheet_mime = call_nanobanana_laozhang(
    image_data=reference_image_bytes,
    prompt=PROMPT_WITH_REFERENCE,
    api_key=os.getenv("LAOZHANG_API_KEY"),
    aspect_ratio="16:9"  # Wide for turnaround layout
)

# Without reference image
sheet_data, sheet_mime = call_nanobanana_laozhang(
    image_data=None,
    prompt=PROMPT_DESCRIPTION_ONLY.replace("[CHARACTER DESCRIPTION HERE]", character_desc),
    api_key=os.getenv("LAOZHANG_API_KEY"),
    aspect_ratio="16:9"
)

# Save result
with open("character_sheet.jpg", "wb") as f:
    f.write(sheet_data)
```

## Character Descriptions for Greenland Article

### Modern Historian
```
a 45-year-old male Russian academic historian and archivist. He has
salt-and-pepper hair neatly combed back, wire-rimmed glasses, a closely
trimmed gray beard. He wears a brown tweed jacket with leather elbow patches,
a cream button-down shirt, and a burgundy knit tie. His expression is
serious and scholarly. He holds white cotton archival gloves.
```

### 1867 Diplomat (Gorchakov-inspired)
```
a distinguished 60-year-old Russian diplomat from the 1860s. He has a full
gray beard, receding hairline with remaining hair combed back, piercing eyes.
He wears a dark formal frock coat with high collar, white cravat, and
multiple medals and orders on his chest. His expression is dignified and
authoritative. 19th century formal portrait style.
```

### Archival Hands (for document handling shots)
```
a pair of hands wearing white cotton archival gloves, belonging to a middle-aged
professional. The hands are carefully positioned as if handling a delicate
historical document. Neutral gray background. Professional archival photography style.
```

## Object Reference Sheets

For objects, use simpler turnaround:

```
Create a reference sheet of [OBJECT DESCRIPTION].
Show the object from multiple angles: front view, side view, top view, detail close-up.
Clean neutral background. Sharp, detailed photography style.
```

### 1867 Document
```
a historical document from 1867: yellowed parchment paper with slightly
frayed edges, handwritten text in iron gall ink (brown-black, slightly faded),
a large red wax seal at the bottom with an imperial double-headed eagle impression,
cursive Cyrillic script signature. The document shows signs of age: foxing spots,
slight creases, but overall well-preserved.
```

### 19th Century Arctic Map
```
a 19th century cartographic map showing the Arctic region: Greenland, Alaska,
northern Russia, Spitsbergen. Aged paper with sepia tones, decorative compass rose,
hand-drawn coastlines with cross-hatching for mountains, ornate cartouche with
title in French or Russian, sea monsters or ships in the ocean areas.
```
