Photoreal Blender scenes from a one-paragraph brief, built by AI agents: image→3D props on fal, scripted layout, lighting, camera and grade.
Python
Studio: bigger sample picker; mock builds need no plate
Apekshik Panigrahi05af265d9bca
diff --git a/web/app/globals.css b/web/app/globals.cssindex f5b48e1..eac7ebd 100644--- a/web/app/globals.css+++ b/web/app/globals.css@@ -143,14 +143,14 @@ button:disabled { cursor: default; }.mock-switch input { margin-top: 2px; accent-color: var(--red); }.mock-switch .dim { color: var(--dim-text); }.sample-open { align-self: flex-start; }-.sample-panel { position: fixed; z-index: 40; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 24px); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--card); border: 2px solid var(--ink); box-shadow: 6px 6px 0 rgba(31, 29, 26, 0.18); }+.sample-panel { position: fixed; z-index: 40; width: min(1200px, calc(100vw - 32px)); max-height: calc(100vh - 24px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--card); border: 2px solid var(--ink); box-shadow: 6px 6px 0 rgba(31, 29, 26, 0.18); }.sample-panel.docked { left: 16px; right: 16px; top: 12px; width: auto; }.sample-panel-head { display: flex; justify-content: space-between; align-items: center; }-.samples-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }+.samples-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }@media (max-width: 480px) { .samples-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }.sample { display: flex; flex-direction: column; gap: 3px; padding: 0; background: none; border: 0; text-align: left; color: var(--ink); cursor: pointer; }.sample img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--rule); transition: border-color 0.15s var(--ease); }-.sample span { font-size: 12px; line-height: 1.25; color: var(--dim-text); }+.sample span { font-size: 13px; line-height: 1.25; color: var(--dim-text); }.sample:hover img, .sample:focus-visible img { border-color: var(--ink); }.sample.on img { border: 2px solid var(--red); }.sample.on span { color: var(--ink); }diff --git a/web/components/BuilderInputs.tsx b/web/components/BuilderInputs.tsxindex 0858e67..a4dceae 100644--- a/web/components/BuilderInputs.tsx+++ b/web/components/BuilderInputs.tsx@@ -131,7 +131,7 @@ export default function BuilderInputs({ value, onChange, disabled, canBuild, bui</button><p className="fine">{mock- ? "Plays at 16x; change the speed in the toolbar. The frames and results are from a recorded build, not your plate."+ ? "No plate needed: it uses the recorded build's unless you pick one. Plays at 16x (speed in the toolbar); the frames and results are the recorded build's.": <>One agent builds it end to end and loops with a critic. Up to 2 hours.{note ? <> {note}</> : null}</>}</p></div>diff --git a/web/components/BuilderStudio.tsx b/web/components/BuilderStudio.tsxindex 7c11ea8..d7e879c 100644--- a/web/components/BuilderStudio.tsx+++ b/web/components/BuilderStudio.tsx@@ -71,8 +71,8 @@ export default function BuilderStudio() {.then((s) => {if (cancelled) return;setSource(s);- // a mock keeps the plate you picked; a plain replay shows the recorded one- if (mock) return;+ // a mock keeps the plate you picked, else shows the recorded build's; a plain replay always shows the recorded one+ if (mock) return setInputs((i) => (i.previewUrl ? i : { ...i, previewUrl: s.referenceUrl }));setInputs((i) => ({ ...i, previewUrl: s.referenceUrl }));refUrl.current = s.referenceUrl;})@@ -391,7 +391,7 @@ export default function BuilderStudio() {setInputs(v);}}disabled={running}- canBuild={!!(inputs.file || refUrl.current || (mock && inputs.previewUrl)) && !running && !!source}+ canBuild={!!(inputs.file || refUrl.current || mock) && !running && !!source}building={running || checking}onBuild={requestBuild}note={live ? <CostNote me={me} /> : null}@@ -399,7 +399,11 @@ export default function BuilderStudio() {onMock={(on) => {setMock(on);if (on && speed === 1) setSpeed(16);- if (!on) setSpeed(1);+ if (!on) {+ setSpeed(1);+ // drop the recorded plate a mock filled in: a live build needs one of yours+ if (!inputs.file && !refUrl.current) setInputs((i) => ({ ...i, previewUrl: "" }));+ }}}/>{res && res.build_id && openKind === "scene" && <ShotsOrder res={res} source={source instanceof LiveSource ? source : null} />}diff --git a/web/components/SamplePicker.tsx b/web/components/SamplePicker.tsxindex 95437f0..acab4b0 100644--- a/web/components/SamplePicker.tsx+++ b/web/components/SamplePicker.tsx@@ -9,7 +9,7 @@ const narrow = () => typeof window !== "undefined" && window.innerWidth < 760;* (full width on a phone), so the inputs below stay in view. Closes on a pick, Escape or a click outside. */export default function SamplePicker({ current, disabled, onPick }: { current?: string; disabled: boolean; onPick: (f: File) => void }) {const [open, setOpen] = useState(false);- const [pos, setPos] = useState<{ top: number; left: number } | null>(null);+ const [pos, setPos] = useState<{ top: number; left: number; width: number } | null>(null);const [loading, setLoading] = useState<string | null>(null);const [error, setError] = useState("");const btn = useRef<HTMLButtonElement>(null);@@ -23,8 +23,11 @@ export default function SamplePicker({ current, disabled, onPick }: { current?:const side = btn.current?.closest("aside")?.getBoundingClientRect();if (!b) return;if (narrow()) return setPos(null);+ // as wide as the space right of the sidebar allows (up to 1200 px), level with the button, inside the window+ const left = (side?.right ?? b.right) + 12;+ const width = Math.min(1200, window.innerWidth - left - 24);const h = panel.current?.offsetHeight ?? 0;- setPos({ top: Math.max(12, Math.min(b.top - 12, window.innerHeight - h - 12)), left: (side?.right ?? b.right) + 12 });+ setPos({ top: Math.max(12, Math.min(b.top - 12, window.innerHeight - h - 12)), left, width });};place();// again whenever its size changes (floating width applied, thumbnails loaded)@@ -76,7 +79,7 @@ export default function SamplePicker({ current, disabled, onPick }: { current?:<divref={panel}className={`sample-panel ${pos || !narrow() ? "" : "docked"}`}- style={pos ? { top: pos.top, left: pos.left } : undefined}+ style={pos ? { top: pos.top, left: pos.left, width: pos.width } : undefined}role="dialog"aria-label="Sample reference plates">diff --git a/web/lib/samples.ts b/web/lib/samples.tsindex 85f5583..fed0083 100644--- a/web/lib/samples.ts+++ b/web/lib/samples.ts@@ -1,5 +1,5 @@// Sample reference plates for trying the builder without your own image. Generated with GPT Image 2.5 Sunburst by-// generate/samples.sh; served from public/samples/<id>.jpg (1536 px) with <id>_thumb.jpg (384 px) for the picker.+// generate/samples.sh; served from public/samples/<id>.jpg (1536 px) with <id>_thumb.jpg (768 px) for the picker.export interface Sample {id: string;label: string;diff --git a/web/public/samples/apothecary_thumb.jpg b/web/public/samples/apothecary_thumb.jpgindex c51918f..51e11af 100644Binary files a/web/public/samples/apothecary_thumb.jpg and b/web/public/samples/apothecary_thumb.jpg differdiff --git a/web/public/samples/arcade_thumb.jpg b/web/public/samples/arcade_thumb.jpgindex 79efff3..dce9f9e 100644Binary files a/web/public/samples/arcade_thumb.jpg and b/web/public/samples/arcade_thumb.jpg differdiff --git a/web/public/samples/cabin_thumb.jpg b/web/public/samples/cabin_thumb.jpgindex c918425..ae0448f 100644Binary files a/web/public/samples/cabin_thumb.jpg and b/web/public/samples/cabin_thumb.jpg differdiff --git a/web/public/samples/cargo_thumb.jpg b/web/public/samples/cargo_thumb.jpgindex ab698ae..02e66fb 100644Binary files a/web/public/samples/cargo_thumb.jpg and b/web/public/samples/cargo_thumb.jpg differdiff --git a/web/public/samples/diner_thumb.jpg b/web/public/samples/diner_thumb.jpgindex 7e9922d..ec0ca30 100644Binary files a/web/public/samples/diner_thumb.jpg and b/web/public/samples/diner_thumb.jpg differdiff --git a/web/public/samples/forge_thumb.jpg b/web/public/samples/forge_thumb.jpgindex b9587c7..d59ed5d 100644Binary files a/web/public/samples/forge_thumb.jpg and b/web/public/samples/forge_thumb.jpg differdiff --git a/web/public/samples/garage_thumb.jpg b/web/public/samples/garage_thumb.jpgindex 8182c75..6a3ef89 100644Binary files a/web/public/samples/garage_thumb.jpg and b/web/public/samples/garage_thumb.jpg differdiff --git a/web/public/samples/greenhouse_thumb.jpg b/web/public/samples/greenhouse_thumb.jpgindex 982bb12..a6cc529 100644Binary files a/web/public/samples/greenhouse_thumb.jpg and b/web/public/samples/greenhouse_thumb.jpg differdiff --git a/web/public/samples/jazz_thumb.jpg b/web/public/samples/jazz_thumb.jpgindex fa8779f..8eb1638 100644Binary files a/web/public/samples/jazz_thumb.jpg and b/web/public/samples/jazz_thumb.jpg differdiff --git a/web/public/samples/library_thumb.jpg b/web/public/samples/library_thumb.jpgindex b1c06fa..85c0434 100644Binary files a/web/public/samples/library_thumb.jpg and b/web/public/samples/library_thumb.jpg differdiff --git a/web/public/samples/noir_thumb.jpg b/web/public/samples/noir_thumb.jpgindex 06ca7a8..178dab9 100644Binary files a/web/public/samples/noir_thumb.jpg and b/web/public/samples/noir_thumb.jpg differdiff --git a/web/public/samples/subway_thumb.jpg b/web/public/samples/subway_thumb.jpgindex dc31df1..6c82f4d 100644Binary files a/web/public/samples/subway_thumb.jpg and b/web/public/samples/subway_thumb.jpg differ