MatchMove
Computer Science and Information Technology, Spring 2010
Tz-Kuei Huang
(kuei@cmlab.csie.ntu.edu.tw)2010/4/16
Workflow
• Input
– Video
– CGI Animation
Workflow
+
Setting
• Blender
– Version: 2.49b (stable)
– Operating System: Windows, Mac OS, Linux, ...
– Need to install Python 2.6 (2.6.5 final) – Web Site: http://www.blender.org/
• Voodoo
– Version: 1.0.1 beta
– Operating System: Windows, Linux
– Web Site: http://www.digilab.uni-hannover.de/
• Other Options:
– Free: ICARUS + Blender
– Pay: boujou + 3D Max, boujou + Maya, ...
Recipe: Get Image Sequence
• Open Blender
• Open video file:
– Change Window Type to Video Sequence Editor – Select 「Add → Movie」
– Put the strip in Layer 1
• Do sequence:
– Choose Scene(F10)
– Output → Choose where you want to save – Anim →
• Click Do Sequence
• Select start and end of the sequence – Frame →
• Set frame size
• Choose output file type(Targa) – Click ANIM button
Step by step: Get Image Sequence
• Open video file:
Add → Movie Click here to change
window type
Step by step: Get Image Sequence
• Open video file:
Select video file Open video file
Step by step: Get Image Sequence
• Open video file:
Click to Put the strip in Layer 1
Step by step: Get Image Sequence
• Do sequence :
Click “Do Sequence”
Set frame size Choose where you want
to save the sequence
Select start and end
Choose Scene
Choose output file type(Targa) Click “ANIM” button
Recipe: Calibration
• Open Voodoo
• Open image sequence:
– Select 「File → Open → Sequence」
– Select the first frame – Select Move Type
• Track:
– Click Track button
• Export Python script:
– Select 「File → Save → Blender Python Script」
– Save .py file
Step by step: Calibration
File → Open
→ Sequence
Select the first frame Select “Move Type”
Step by step: Calibration
Track
Step by step: Calibration
Export Python script
Recipe: Import 3D Motions
• Open Blender again
• Delete default objects
– Click “a” two times, then click “del”
• Open Python script:
– Change Window Type to Text Editor – Select 「Text → Open」
– Select the .py file export from Voodoo
• Run script: Select 「Text → Run Python Script 」
• Load background images:
– Change Window Type to 3D View
– Select 「View → Cameras → Set Active Object as Active Camera」
– Select 「View → Background Image…」
– Load background images, choose the first frame – Set sequence
– Set scene
• Delete default objects
Step by step: Import 3D Motions
Click here to erase
Step by step: Import 3D Motions
• Open Python script
Click here to change window type
Text → Open
• Run script
Step by step: Import 3D Motions
Text → Run Python Script
• Load background images
Step by step: Import 3D Motions
Click here to change window type
View → Cameras → Set Active Object as Active Camera
Step by step: Import 3D Motions
• Load background images
View → Background Image…
Load background images
• Load background images
Step by step: Import 3D Motions
Set frame number
Set Blend
Click “ Auto Refresh”
• Load background images
Step by step: Import 3D Motions
Select save folder Select start and end
Select “Scene”
button Click “Do Set frame size
Sequence”
Select output file type (AVI Codec)
Recipe: Compositing
• Change Datablock to SR:4-Sequence
• Add video sequence:
– Change Window Type to Video Scene Editor – Select 「Add → Images」, select all images – Put the strip in Layer 1
• Add Scene:
– Select 「 Add → Scene」
– Put the strip in Layer 2 – Set sequence
• Animation:
– Click ANIM button
Step by step: Compositing
Click here to change window type
Change Datablock to “SR:4-Sequence”
Add → Images
Step by step: Compositing
Put the strip in Layer 1
Step by step: Compositing
Select
“Alpha Over”
Add → Scene Put the strip in Layer 2
Select
“Premul”
Select
“Sequence” button
Step by step: Compositing
Click “ANIM” Button
作業要求
• 器材借用
– 4/19~4/28,請mail給助教約借用時間,一次借用以一小時為限
• 分組:
– 2人,考慮做難度較高者可以3 人
– 請於4/21 23:59 以前mail給助教
• 上傳
– Ceiba
– 大小限制:15MB,請用ffdshow video codec壓縮
• 繳交期限:
– 5/7 23:59
• 評分:
– Voting
– 故事
– 技術
Reference
• Blender official website
– http://www.blender.org/
• Voodoo document website
– http://www.digilab.uni-
hannover.de/docs/manual.html
• 使用 Blender 以及voodoo 來模擬子彈飛行
– http://newwork2000.blogspot.com/2009/10/blog- post.html
• K-Lite Mega Codec Pack
– http://www.free-
codecs.com/K_Lite_Mega_Codec_Pack_download.htm