|
|
|
|
avator
animation for OpenSim |
|
|
|
|
|
|
|
Shall we dance? |
|
|
|
2008/10/22 |
|
編 : OpenSim研究会 |
|
|
逐次更新中 |
|
|
FAQ集 |
|
|
Q |
Shall we dance? |
|
|
|
Ans |
winkで作成 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Q |
Winkって何ですか? |
|
|
|
Ans1 |
ウィンドウを動画キャプチャーしてチュートリアル用のFlashを作成します |
|
|
作成したFlash には、 “ 吹き出し ” や
“ 説明ボックス ” 等を加えることができます。 |
|
|
|
http://www.forest.impress.co.jp/lib/pic/piccam/capture/wink.html |
|
|
Wink
[Download] |
|
|
|
|
|
Ans2 |
使い方 |
|
|
http://www.gigafree.net/media/recording/wink.html |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Flashファイル作成 |
フレームレート30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Q |
Qavimatorのダウンロード先 |
|
|
|
Ans |
ポーズ(bvhファイル)を作るためのフリーソフト |
|
|
他人作成のbvhファイル利用なら、ダウンロード必要はありません。 |
|
|
|
|
http://zi.furhome.net/downloads/qavimator-setup-20071203.exe |
|
|
|
updated December 03, 2007 |
|
|
Q |
bvhファイルの楽勝収集先 |
|
|
|
Ans |
http://static.secondlife.com/downloads/avatar/bvh_files.zip |
|
|
|
アニメーションを、すべて1から自作することは可能ですが、それなりに手間がかかってしまいます。 |
|
|
ベースとして使えば他のポーズも充分利用価値は高い |
|
|
|
http://mocapdata.com/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Q |
bvhファイルとは? |
|
|
|
Ans |
Biovision Hierarchy |
|
|
ボーンの階層構造を含むモーション定義ファイル |
|
|
Biovision
社が提唱したモーションキャプチャーダータファイルフォーマット |
|
|
|
BVHファイルはテキストなので、メモ帳や秀丸などで開くことができる。 |
|
|
|
早速、構造を覗いてみましょう。 |
|
|
|
参考 :
|
http://holodeck.slmame.com/e131699.html |
|
|
|
「Frame Time:・・・」という行で、数値を上げると、ゆっくり再生となる。 |
|
|
Q |
bvhファイルが再生しない? |
|
|
|
Ans |
正常に読み込めないファイルがあります。 |
|
|
規約を拡張・無視したbvhの存在です。 |
|
|
Q |
bvhファイルの総フレーム数が大きい場合再生しない? |
|
|
Ans |
|
|
|
Q |
bvhアニメーションデータエフェクターって何ですか? |
|
|
Ans |
http://sabro.slmame.com/e162193.html |
|
|
|
Q |
Qavimatorの使い方 |
|
|
|
Ans |
http://sl.impressrd.jp/e/2007/11/30/433 |
|
|
|
|
詳細割愛、上記urlは、爺さん口調で飽きさせない |
|
|
|
Q |
default animation
priorities.txtって何ですか? |
|
|
Ans |
このファイルには、各アニメーションの優先順位の数値が記載されています。 |
|
|
0 |
|
|
1 |
|
|
2 |
|
|
3 |
|
|
4 |
最優先 |
|
|
|
Q |
bvhファイルの大量アップロード |
|
|
|
|
Ans |
できません。 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Q |
bvhファイルのアップロード |
|
|
|
|
Ans |
1ファイル毎、アップロードして下さい。 |
|
|
|
その際、LoopにチェックをいれPriorityを4にします。 |
|
|
|
|
Q |
bvhファイルの連結 |
|
|
|
|
Ans |
llStartAnimation関数(指定された名前のアニメーションを開始します。) |
|
|
一番目のパラメータ : アニメーション名 |
|
|
|
llStopAnimation関数(指定された名前のアニメーションを終了します。) |
|
|
一番目のパラメータ : アニメーション名 |
|
|
|
Q |
Blenderでbvhのimport? |
|
|
|
Ans |
|
|
|
|
|
|
|
Armature(骨組)をimportする |
|
|
|
|
|
|
|
|
|
|
|
クリックするとダンスします。 |
|
|
|
親子関係をもつ、Boneが出現します。 |
|
|
親から、子へ移動や回転が伝えられます。 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Q |
Blender Armature
Animationって何ですか? |
|
|
Ans |
骨組(Armature)をもったアニメーション |
|
|
デフォーマとは形を変形させるためのツール |
|
|
|
|
|
|
|
|
|
|
|
|
|
Root |
|
|
|
|
|
|
|
|
|
|
Jpint |
|
Body |
|
|
|
|
|
|
|
|
|
|
|
|
Bone |
|
Tip |
|
|
|
|
|
|
|
Joint部分でEキー |
Bone追加 |
|
|
|
Joint部分でWキー |
Bone分割 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Bone name |
Parent name |
連結スイッチ |
|
|
|
|
|
|
|
|
|
|
Armatureによって影響を受ける部分とその量を指定 |
|
|
Nキー |
|
|
|
|
POSE
MODEで Addボタンが出現 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ウェイトの法則? |
|
|
|
Q |
Blender Amature
Animのposeモードでアニメさせよう? |
|
|
|
Ans |
同じbvhファイルで、OPENSIMとBlenderで動かしてみましょう。 |
|
|
|
|
|
|
|
|
|
|
|
|
|
こうなってみたーい |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Poseは、Edit時の位置が初期状態 |
|
|
Alt + G : 位置リセット |
|
|
Q |
Blender Amature
AnimのAction Editorって何ですか? |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+キーで拡大してみます。 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
http://f11.aaa.livedoor.jp/~hige/index.php?[[Action%A5%A6%A5%A3%A5%F3%A5%C9%A5%A6]] |
|
|
|
|
|
Ans2 |
|
|
|
QuatX Y Z W は、ベクトルであり(4元数)、キーフレーム生成は、boneを直接操作して行う。 |
|
|
|
一般的に姿勢の結果とこれらのクォータニオンのパラメータを関連させて表現するのは難しい |
|
|
|
|
|
|
Ans3 |
難度高し ^^; |
|
|
|
http://marupeke296.com/DXG_No10_Quaternion.html |
|
|
|
Q |
Blender Amature
AnimのConstraintって何ですか? |
|
|
Ans |
Poserモード時に、ConstraintsパネルにAddボタンが出現 |
|
|
|
|
|
|
|
|
IK Solver |
|
( IK : インバース・キネマティクス ) |
|
|
|
|
|
|
|
|
|
|
TrackTo Constraint |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
コンストレイントを理解する |
|
|
|
Q |
Blender to SL BVH
Animation Exporterとは |
|
|
|
Ans |
Copyright 2008 Jacek
Antonelli |
|
|
|
|
|
http://tentacolor.com/2008/05/19/blender-to-sl-bvh-animation-exporter/ |
|
|
|
|
|
(1) py or blend入手先・・・ |
|
|
script : |
http://tentacolor.com/wp-content/uploads/2008/05/basic_exporter.py |
|
|
blend file: |
http://tentacolor.com/wp-content/uploads/2008/05/basic_exporter_2008-05-19.blend |
|
|
|
作者は、使用方法がわからなければ、他の誰かに、聞けといっております。サポートに関心がない!! ^^; |
|
|
|
(2)
blendファイルをopenしてみましょう。 |
|
|
作者は、3つの基本技能を覚えてくれといっています。 |
|
|
カメラワーク、Poseをとらせる、keyframeを入れるです。 |
|
|
|
scripts window |
|
Ipo Curve Editor |
|
Buttons Window |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Action editor |
|
3D View |
|
|
exportしたいファイルを選択 |
|
|
|
(3) scriptを実行してみます。 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(4) how to |
|
|
|
http://tentacolor.com/sl-animation-for-blender-newbs/getting-set-up/ |
|
|
http://tentacolor.com/sl-animation-for-blender-newbs/using-the-camera/ |
|
|
http://tentacolor.com/sl-animation-for-blender-newbs/posing-the-armature/ |
|
|
http://tentacolor.com/sl-animation-for-blender-newbs/working-with-keyframes/ |
|
|
http://tentacolor.com/sl-animation-for-blender-newbs/exporting-for-sl/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
Q |
Download Avatar Meshって何ですか? |
|
|
|
Ans1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
・OBJ、BVHファイルを含むので、他の3Dソフトでテスト可能 |
|
|
マヤ族、3DSMax、Animation
Master、Blenderなどの3Dアプリケーション |
|
|
・このSecondLifeモデルを使って、より、正確なアニメ作成を支援 |
|
|
これらのキャラクタで作成されたアニメーションはSecond
Lifeにアップロードできます |
|
|
セカンドライフ外で、衣服のマネキンテストができる |
|
|
|
|
Ans2 |
Blenderへのimport |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Q |
Robot Avatorって何ですか? |
|
|
|
Ans |
ログインなしで、活動できるアバターだ!? |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Q |
今後、登場してほしいアバターは? |
|
|
|
|
Ans |
|
|
|
|
水のクリーチャー |
|
|
3Dホログラフィック |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SAND MAN |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
補Q |
Blender Ipoカーブって何ですか? |
|
|
|
Ans1 |
補間曲線 : Interpolate Curve |
|
|
|
3D ウィンドゥ |
|
Ipo ウィンドゥ |
|
|
|
|
|
|
|
|
|
位置 |
|
|
|
|
|
|
|
|
方向 |
|
|
|
|
|
|
|
|
大きさ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
時間 |
|
|
|
I --> LocRotScale で位置・方向・大きさをセットしていきます。 |
TABで編集 |
|
|
Alt + A でアニメ実行 |
|
T |
|
補間方法選択 |
|
|
Esc でアニメSTOP |
|
Ctrl + 左クリック |
ポイント追加 |
|
|
Shift + M |
|
反転 |
|
|
K + G |
|
アニメキー移動 |
|
|
Ans2 |
アニメさせよう |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
補Q |
DXFファイルをBlenderへimportをしてみよう |
|
|
Ans |
|
|
dxfファイルをimportしてみます。 |
import不可のものあり? |
|
|
|
|
|
|
|
|
|
|
|
|
|
Name DXF-3D Importer Version 1.12 - 2008.08.03 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Make Parentしておきます。 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
補Q |
Blender Path Animationって何ですか? |
|
|
|
Ans |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
補Q |
Windows Media エンコーダ 9 シリーズ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
インストールが済むと、、、 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Windows Media プロファイルエディタを起動 |
|
|
|
|
|
|
|
|
Q |
ポーズボールのつくり方 |
|
|
|
Ans1 |
用意するものは3つ。 |
|
|
|
1.アニメーションファイル |
|
|
2.オブジェクト |
|
|
3.スクリプト |
|
|
|
|
Ans2 |
スクリプトダウンロード先 |
LSL101Chapter6 - lslWiki |
|
|
|
|
|
integer hidden = FALSE;
// Stores whether the object is visible |
|
|
|
default |
|
|
{ |
|
|
state_entry() |
|
|
{ |
|
|
llSitTarget(<0,0,1>,<0,0,0,1>); // Set the target one
meter above the ground |
|
|
llSetSitText("Pose!"); |
|
|
} |
|
|
|
changed(integer change) |
|
|
{ |
|
|
if(change & CHANGED_LINK) // If someone has sat on, or
"linked," to this prim... |
|
|
{ |
|
|
key avataronsittarget = llAvatarOnSitTarget(); |
|
|
if( avataronsittarget != NULL_KEY ) //Someone is sitting on
the object |
|
|
{ |
|
|
// Comment out this code: |
|
|
//llStopAnimation("sit"); |
|
|
//llStartAnimation("dance1"); |
|
|
|
// Before animating, first check if we have permission to do so: |
|
|
if ((llGetPermissions() & PERMISSION_TRIGGER_ANIMATION) &&
llGetPermissionsKey() == avataronsittarget) { |
|
|
// If we do, we can animate: |
|
|
llStopAnimation("sit"); |
|
|
llStartAnimation("dance1"); |
|
|
|
} else { |
|
|
// If we dont, ask for them: |
|
|
llRequestPermissions(avataronsittarget, PERMISSION_TRIGGER_ANIMATION); |
|
|
// We'll animate in the run_time_permissions event, which is triggered |
|
|
// When the user accepts or declines the permissions request. |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
run_time_permissions(integer perm) |
|
|
{ |
|
|
if(perm) |
|
|
{ |
|
|
// Place the code here! |
|
|
llStopAnimation("sit"); |
|
|
llStartAnimation("stand"); |
|
|
} |
|
|
} |
|
|
|
touch_start(integer
total_number) |
|
|
{ |
|
|
if(hidden) |
|
|
{ |
|
|
hidden = FALSE; |
|
|
llSetLinkAlpha(LINK_SET,1,ALL_SIDES); |
|
|
} |
|
|
else |
|
|
{ |
|
|
hidden = TRUE; |
|
|
llSetLinkAlpha(LINK_SET,0,ALL_SIDES); |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|