Created
December 30, 2025 04:24
-
-
Save HideyukHira/02d749bd7097660b0ebc92777a5f4810 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Role & Objective | |
| You are the "nano banana" Rendering Engine Core. Your task is to parse the following Clojure code as a **strict visual specification** and execute the `generate-retro-editorial` function conceptually. | |
| # Protocol | |
| 1. **Interpret S-Expressions:** Treat every key-value pair in the Clojure map as a binding constraint. | |
| 2. **Priority:** The `:require` and `:constraints` blocks are absolute. Do not override them with general knowledge. | |
| 3. **Execution:** Convert the structured data into a high-fidelity visual description. | |
| 4. **Output:** Provide the final detailed image prompt based on the executed state. | |
| # Input Code (Clojure) | |
| ;; Namespace: nano-banana.blueprints.retro | |
| ;; Engine: PX-LOCK-EDITORIAL v1.0 | |
| ;; Goal: Near-exact photorealistic recreation | |
| (ns nano-banana.instructions | |
| (:require [nano-banana.core :as nb])) | |
| (def constraints | |
| "レンダリングの絶対制約条件" | |
| {:no-pose-drift true | |
| :no-outfit-variation true | |
| :no-camera-variation true | |
| :anatomy-realism-required true | |
| :render-priority :texture-fidelity}) | |
| (defn generate-retro-editorial [ctx] | |
| (-> ctx | |
| ;; --------------------------------------------------------- | |
| ;; 1. 初期化と制約の注入 (Initialization & Constraints) | |
| ;; --------------------------------------------------------- | |
| (nb/init-scene "PX-LOCK-EDITORIAL" "1.0") | |
| (nb/apply-constraints constraints) | |
| ;; --------------------------------------------------------- | |
| ;; 2. 被写体定義 (Subject Definition) | |
| ;; --------------------------------------------------------- | |
| (nb/define-subject | |
| {:demographics {:age "early-to-mid 20s" | |
| :ethnicity :caucasian | |
| :skin-tone "fair to light warm, subtle sheen"} | |
| :face {:shape "soft oval" | |
| :eyes {:color "light hazel" :state :closed} | |
| :lips {:color "muted natural pink" :expression :relaxed}} | |
| :hair {:color :blonde | |
| :style "long loose waves, curtain bangs" | |
| :physics "cascading onto carpet"} | |
| :body {:type "voluptuous hourglass" | |
| :measurements {:bust 34 :waist 25 :hips 38} | |
| :height-inches 66 | |
| :anatomy {:s-curve "pronounced" | |
| :bust-depth 5.0 | |
| :hip-depth 5.5}}}) | |
| ;; --------------------------------------------------------- | |
| ;; 3. ポーズの固定 (Pose Locking) | |
| ;; --------------------------------------------------------- | |
| (nb/lock-pose | |
| {:base :side-lying-floor | |
| :orientation :left-side-down | |
| :torso {:angle 20 :direction :toward-camera} | |
| :head {:tilt -10 :rotation :downward} | |
| :limbs {:left-arm {:state :bent :support :forearm-on-carpet :angle 95} | |
| :right-arm {:state :extended :contact :near-cd-player} | |
| :right-leg {:state :bent-forward :hip-flexion 45} | |
| :left-leg {:state :extended-back}} | |
| :vibe "intentional asymmetry, relaxed lounge"}) | |
| ;; --------------------------------------------------------- | |
| ;; 4. 衣装と小道具 (Wardrobe & Props) | |
| ;; --------------------------------------------------------- | |
| (nb/equip-wardrobe | |
| {:main {:item "long-sleeve high-cut bodysuit" | |
| :color "muted sage" | |
| :material "matte stretch fabric" | |
| :reflectivity :low} | |
| :feet {:item "ankle socks" :color :white} | |
| :acc {:item "wired earphones" :conn "portable CD player"}}) | |
| (nb/place-props | |
| [{:item "portable CD player" :color :white :pos "near right hand"} | |
| {:item "portable stereo" :color :pink :pos "background floor"} | |
| {:item "CD stacks" :qty :multiple :pos "scattered right"}]) | |
| ;; --------------------------------------------------------- | |
| ;; 5. 環境構築 (Environment Build) | |
| ;; --------------------------------------------------------- | |
| (nb/build-environment | |
| {:setting "retro bedroom" | |
| :period "late-90s/early-2000s" | |
| :surfaces {:floor "deep blue carpet" | |
| :walls "pastel pink with vintage collage"} | |
| :furniture [{:item "canopy bed" :color :white} | |
| {:item "armchair" :color :peach}] | |
| :lighting {:source :natural-window | |
| :temp 5200 | |
| :quality "soft diffused side-light"}}) | |
| ;; --------------------------------------------------------- | |
| ;; 6. カメラと画質 (Camera & Quality) | |
| ;; --------------------------------------------------------- | |
| (nb/setup-camera | |
| {:pos :floor-level | |
| :angle :slightly-upward | |
| :focus {:subject :sharp :bg :mild-falloff} | |
| :ratio "3:2"}) | |
| (nb/set-render-quality | |
| {:resolution :ultra-high | |
| :texture-detail [:skin-pores :fabric-weave] | |
| :grading "warm pastel highlights, cinematic realism"}) | |
| ;; 実行トリガー | |
| (nb/execute!))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment