Communitygithub.com

3D 預視到 AI 影片

透過 3D 灰盒場景(previs)控制 AI 生成影片的相機路徑與編排。在 Blender、three.js 或任何 3D 工具中建構場景、設定相機動畫,並將參考影片與角色/車輛/地點參考圖像傳遞給 Seedance 2.x 參考模式(@Video1 + @Image 對應),實現精確的鏡頭控制。

3D 預視到 AI 影片 是什麼?

此技能專門用於解決文字提示無法精確描述複雜相機運動(如 FPV 飛行、汽車變形、複雜編舞)的問題。使用者先在 3D 工具中搭建灰盒場景(中性灰色、簡單幾何形狀),設定單一連續鏡頭(每段 ≤8 秒)的相機動畫,並輸出參考影片。然後透過 Seedance 2.x 的參考模式,將此灰盒影片作為 @Video1(定義相機路徑與時序),搭配真實照片(角色、車輛、地點)作為 @Image 參考,產生具有真實感的 AI 影片。此管道強調「灰盒規則」(中性光線、單一鏡頭移動、主角在結尾保持可見)、「接觸檢查」(先輸出 3-6 幀檢查構圖)以及「變形規劃」(在灰盒內預先設計零件分離與重組)。支援 Blender(可搭配 MCP 橋接由 AI 代理自動建構場景)、three.js、Unreal/Unity 等工具,最終輸出為 MP4 格式。成本方面,單次 8 秒 480p 生成約 $0.75-$0.85,約需 2.5-3 分鐘。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/klakix-ai/ai-video-skills/tree/HEAD/skills/3d-previs-to-ai-video

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

3D 預視到 AI 影片 是做什麼的?

文字無法準確描述一條 FPV 路徑穿過街道的瞬間,或是一輛車解體並重組成另一輛車的時刻。3D 灰盒場景可以做到。參考模式的視訊模型(Seedance 2.x)能極佳地複製參考影片的相機運動與時序,並從參考圖像中獲得其外觀。您將獲得 3D 的控制力,同時保有影片模型的真實感。

流程

  1. 搭建灰盒場景:使用簡單形狀:地面、建築物為方塊、角色為膠囊、車輛為附輪子的方塊。中性灰色材質,普通日光。
  2. 動畫化相機(每個鏡頭一次移動,詳見規則)以及關鍵物體。
  3. 輸出接觸檢查表(3 到 6 幀)並在進行其他步驟前先檢查。
  4. 輸出參考影片:使用目標長寬比與時長(8 至 15 秒;長邊 1280 px 即足夠)。
  5. 製作參考圖像:角色表、車輛多角度表、地點照片。地點與車輛優先使用真實照片(去除人臉與標誌)。
  6. 生成:將灰盒場景作為 @Video1,圖像作為 @Image1..n,使用參考地圖提示(使用下方範本)。草稿使用 480p,如果畫面將大範圍顯示,最終輸出使用 720p。
  7. 並排比較(上方為灰盒,下方為結果)以確認相機是否跟隨。

灰盒規則

  • 中性灰色,普通日光。 黃金時刻的灰盒場景導致結果偏暗且偏橘。外觀來自提示與圖像參考,而非灰盒的光影。
  • 每個 ≤ 8 秒的鏡頭僅有一次相機移動。 在一個 8 秒鏡頭內執行三次移動(俯衝 + 跟隨 + 上升)會導致「相機移動過快,效果極差」。保持相機速度適中;使用 ai-video-camera-language/scripts/camera_speed.py 測量渲染結果。
  • 主角元素在移動結束時保持在畫面內;觀眾會記住最後一幀。
  • 背景保持合理的距離:自動生成的佈局會將山脈直接放在人群後方,導致畫面充滿巨大的灰色圓錐。保持遠景距離主動作至少 3 到 4 倍的景深。
  • 相機必須看到重要的東西。 一個遙遠的最終相機讓 60 人編隊變得難以察覺。在灰盒中修正,因為修改成本為零。
  • 變形也需要在灰盒中預先規劃。 如果一輛車變成另一輛車,需建立匹配的零件組(車門、引擎蓋、輪子)父級為一個根物體,並使其依序下沉與上升;這樣提示也同樣計算這些秒數。不要在相機非常靠近一個零件時改變它。
  • 車內鏡頭:將相機保持在前座椅背前方,面對駕駛,這樣駕駛永遠不會離開畫面。

提示範本(參考模式)

影像 / 影片參考對應
@Video1 是一個灰色的 3D 灰盒場景:它只定義了相機路徑、時序以及物體的位置。完全複製 @Video1 的每一個相機移動。忽略其灰色材質與光影。
@Image1 是快遞員(角色表)。@Image2 是機車。@Image3 是街道(真實照片)。

實際街道上的真實 FPV 畫面,真實色彩,真實曝光,僅背景有動態模糊,灰塵與污垢。非 CGI。

0-3 秒:相機從屋頂高度俯衝向正騎著來自 @Image2 的機車、沿著來自 @Image3 的街道行駛的 @Image1 快遞員。
3-6 秒:跟隨在他身後低空飛行,穿梭於停放的車輛之間。
6-8 秒:相機在十字路口升起,在他於咖啡館停下時保持對他的注視。
相機永不失焦主角。無文字、無標誌、無徽章。

對於變形,請描述材質而非效果:「油漆與車身面板碎裂成細碎的金屬片與灰塵,顯露出下方光滑的表面;無線框、無全像網格」。

寫實度備註

  • 「35mm 底片、黃金時刻、鏡頭光暈」導致結果偏向 CGI。「實際街道上的真實 FPV 畫面,真實色彩,非 CGI」則修正了此問題。
  • 生成的場景圖像帶有明信片般的質感;真實照片則讓街道變得可信。
  • 角色:AI 生成的人臉能通過參考過濾器,真實人物照片則無法通過,且多面板的真實感角色表比單張圖像更容易被拒絕。如果含有角色表的請求被拒絕,請不包含人臉圖像再試一次。

成本與時機(2026 年底)

  • Seedance 2.5 參考模式(含參考影片)的計費方式為輸入影片秒數加上輸出秒數(多數供應商)。一個 8 秒 480p 鏡頭搭配 8 秒灰盒場景約需 $0.75 至 $0.85;生成時間約 2.5 至 3 分鐘。
  • 使用 LLM 規劃場景圖(寫出場景圖)的規劃時間約 30 至 60 秒,每次場景約需 $0.12 至 $0.20(根據我們的測試)。
  • 灰盒疊代修改免費;只在接觸檢查表正確後才付費。

工具

Blender(可搭配 MCP 橋接,由 AI 代理為您建構灰盒場景)、瀏覽器中的 three.js、Unreal/Unity,或任何能將相機動畫輸出為 MP4 的 DCC 工具。模型只需要影片本身。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

ai-video-camera-language

Camera angles, lenses and camera movement for AI video generation (Seedance, Kling, Veo, Sora, MiniMax/Hailuo, Runway, Wan, Luma). A tested library of shot types with copy-paste prompt wording, rules for camera speed, the snap-zoom-and-hold move, what to avoid (whip pans, shake, speed ramps on generated footage), and a script that measures camera speed with optical flow so you can pick the calmest part of a clip. Use when writing camera directions in a video prompt, choosing shot types for a storyboard, when a generated clip feels too fast, shaky or lifeless, or when someone asks about camera angles, camera moves or cinematography for AI video.

ai-video-prompting

Write prompts for AI video models that follow instructions precisely - Seedance 2.0 / 2.5 (text, image, multi-reference with @Image/@Video/@Audio, edit, extend), Kling, Veo, MiniMax/Hailuo, Runway, Wan and Sora. Covers prompt structure, second-by-second timelines, reference maps, negative wording, length limits, when to turn off prompt enhancers, and model-specific quirks we measured. Use when writing or fixing a text-to-video or image-to-video prompt, a Seedance reference prompt, when a model ignores parts of the prompt, or when someone asks how to prompt Seedance, Kling or Veo.

ai-video-realism

Make AI images and AI video look like real footage instead of glossy "AI slop". Device-based realism (describe the phone, GoPro, broadcast camera that shot it and its flaws), what words push models toward CGI, real-photo references for locations and vehicles, key frames with photographic image models, natural colour instead of heavy film looks, and absurd-but-real comedy. Use when output looks fake, plastic, too perfect, too cinematic or like a video game, when someone asks for "hyper-realistic", "photorealistic", "looks like a real video", or when planning key frames for an AI video.

ai-video-shot-planning

Plan a multi-shot AI video (Seedance, Kling, Veo, MiniMax/Hailuo, Runway, Wan) before spending money on generation. Turns an idea into a shot list with per-shot action beats, camera move, scene logic, costume and reference images, key frames, a cheap test plan and a cost estimate. Use when someone asks to make an AI short film, reel, ad, music video, story or "viral video" with more than one shot, asks for a storyboard or shot list, or is about to generate several clips in a row.

相關技能