2009年09月24日

3D camerawork Excel macro for MikuMikuDance はてなブックマーク

Download : 3D camerawork macro for Microsoft Excel
http://miku-challenge.up.seesaa.net/image/camera_shift.zip




Q1. What is this macro?

A1. This is an Excel macro that produces 2 stereo cameraworks from 1 normal camerawork of MikuMikuDance (MMD).

http://en.wikipedia.org/wiki/Stereogram
Reference : Stereogram - Wikipedia


Q2. Are there any other application to use this macro?

A2.
(1) MikuMikuDance ver 2.0 or later

(2) "VMD converter" utility
It is better to put the unzipped files in "\UserFile\Motion" subfolder of the MikuMikuDance folder.

(3) Microsoft Excel 2000 or later (Compatible Office application may work)

(4) 3D movie editing application such as "Stereo Movie maker", to glue 2 movies (left-eye movie and right-eye one) into 1.


Q3. How to use this macro?

(1) Prepare an MMD work.
If you want to try this macro, let us "open" the sample .pmm file from MMD menu.

(2) Select the series of camera motion.
Click the "camera" node of the frame 0 in the "frame manipulation" pane (the node will be turned red), and select "select all camera frame" from "frame edit(D)" menu. (all the camera node will be turned red)



(3) Save the camera motion as "VMD" format file.
Select "save motion data(L)" from "file(F)" menu, and save the camerawork as "(something).vmd" file.

(4) Convert VMD file to CSV file.
Drag-and-drop the VMD file you made at the step (3) onto the VMDconverter.exe, and then a "(something).csv" file will be made.

(5) Open the 3D camerawork macro from Excel.
Open the "camera_shiftxxx.xls" file with enabling macro.

(6) Open the CVS file with Excel.
Drag-and-drop or simply open the CVS file you made at the step (4) with Excel. Don't close the macro file you opended at the step (5).

(7) Run the macro
Select "Tool" => "Macro" => "Macro" menu to open the macro dialog, and run the "Camera Shift" macro in the dialog.
An "MMD stereo camera movement generator" dialog will appear, and push the "Generate" button to generate 2 stereo cameraworks - "(Something)_l.csv" and "(Something)_r.csv".
("Binocular parallax" in the dialog means how much distance should be set between 2 stereo cameras in the MMD space scale.)

mmd_stereo3.gif

(8) Convert 2 csv files to vmd files.
Close Excel application.
Drag-and-drop the 2 csv files generated at the step (7) one by one onto the VMDconverter.exe, and then "(Something)_l.vmd" and "(Something)_r.vmd" files will be made.

(9) Import stereo cameraworks into MikuMikuDance.
First, you had better delete all the cameraworks of the MMD (select all the camera frames, and push "delete" button in the "frame manipulation" pane.)
Then select the frame zero (frame "0" number will be turned green), and select "load motion data(M)" from "file(F)" menu.
Open the "(Something)_l.vmd" file, and the stereo camerawork for left-eye will be prepared.
Then render the movie (develop .AVI file) as the left-eye movie.
The right-eye movie can be made the same process.

(10) Glue 2 movies into 1 stereo movie.
Using some video editing application or 3D movie application (like "Stereo Movie maker"), you can make stereo movie.

mmd_stereo.gif


Q4. Can I use "physical engine" of MMD5 or later?

A4. Basically no. MMD physical engine movement includes random factor, and we cannot synchronize stereo movie with physical movement.


Q5. The produced stereo camerawork seems not good when the camera moves dynamically. Why?

A5. This macro produces binocular parallax at all the nodes of the original camerawork, and the interpolation is done by MikuMikuDance. The MMD interpolation is not necessarily appropriate for stereo camerawork, so you should "manually interpolate" = set more nodes among existing nodes when your camerawork is dynamic like "rolling 360 degrees around the model", etc.
After converting csv camerawork with the macro, please open the "(Something).xls" file and see the "(Something)_calc" tab. If there is any numbers in the "Caution" row, you should "manually interpolate" just before the frame where the "Caution" number is shown.


Q6. How to upload the stereo movie to YouTube?

A6. If you made a cross-eyed side-by-side stereo movie, you can upload it to YouTube with "yt3d:enable=true" option in the Tag(Description).
If your movie is wall-eyed one, add "yt3d:swap=true" option.
If you want to set the aspect ratio of your movie, add "yt3d:aspect=x:y" (x,y should be some numbers) option.
As there are many 3D movie with "yt3d" options in YouTube, please refer these movies and other Internet resources.


Q7. Copyright?

A7. This Excel macro is a free soft, and you can use freely, on condition that I will never be responsible to any damages and losses caused by this macro.
posted by だんちゃん at 21:33 | Comment(0) | TrackBack(0) | MMDで立体視 | このブログの読者になる | 更新情報をチェックする
この記事へのコメント
コメントを書く
お名前: [必須入力]

メールアドレス:

ホームページアドレス:

コメント: [必須入力]

認証コード: [必須入力]


※画像の中の文字を半角で入力してください。
※ブログオーナーが承認したコメントのみ表示されます。
この記事へのトラックバックURL
http://blog.seesaa.jp/tb/128759756
※ブログオーナーが承認したトラックバックのみ表示されます。

この記事へのトラックバック
×

この広告は1年以上新しい記事の投稿がないブログに表示されております。