Computer Science and Information Technology, Spring 2010

28  Download (0)

Full text

(1)

MatchMove

Computer Science and Information Technology, Spring 2010

Tz-Kuei Huang

(kuei@cmlab.csie.ntu.edu.tw)

2010/4/16

(2)

Workflow

• Input

– Video

– CGI Animation

(3)

Workflow

+

(4)

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, ...

(5)

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

(6)

Step by step: Get Image Sequence

• Open video file:

Add → Movie Click here to change

window type

(7)

Step by step: Get Image Sequence

• Open video file:

Select video file Open video file

(8)

Step by step: Get Image Sequence

• Open video file:

Click to Put the strip in Layer 1

(9)

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

(10)

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

(11)

Step by step: Calibration

File → Open

→ Sequence

Select the first frame Select “Move Type”

(12)

Step by step: Calibration

Track

(13)

Step by step: Calibration

Export Python script

(14)

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

(15)

• Delete default objects

Step by step: Import 3D Motions

Click here to erase

(16)

Step by step: Import 3D Motions

• Open Python script

Click here to change window type

Text → Open

(17)

• Run script

Step by step: Import 3D Motions

Text → Run Python Script

(18)

• Load background images

Step by step: Import 3D Motions

Click here to change window type

View → Cameras → Set Active Object as Active Camera

(19)

Step by step: Import 3D Motions

• Load background images

View → Background Image…

Load background images

(20)

• Load background images

Step by step: Import 3D Motions

Set frame number

Set Blend

Click “ Auto Refresh”

(21)

• 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)

(22)

Recipe: Compositing

Change Datablock to SR:4-Sequence

• Add video sequence:

Change Window Type to Video Scene EditorSelect 「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

(23)

Step by step: Compositing

Click here to change window type

Change Datablock to “SR:4-Sequence”

Add → Images

(24)

Step by step: Compositing

Put the strip in Layer 1

(25)

Step by step: Compositing

Select

“Alpha Over”

Add → Scene Put the strip in Layer 2

Select

“Premul”

Select

“Sequence” button

(26)

Step by step: Compositing

Click “ANIM” Button

(27)

作業要求

• 器材借用

4/19~4/28,請mail給助教約借用時間,一次借用以一小時為限

• 分組:

2人,考慮做難度較高者可以3 人

請於4/21 23:59 以前mail給助教

• 上傳

Ceiba

大小限制:15MB,請用ffdshow video codec壓縮

• 繳交期限:

– 5/7 23:59

• 評分:

Voting

故事

技術

(28)

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

Figure

Updating...

References

Related subjects :