[Papervision3D2.0] DAE Animation

2008.03.06

e_geometory_uv.jpg

rin_anim.swf(要:FlashPlayer9)
これまで同様、ガテン系ボーカロイドのモデルデータは、ズサさんが作成されたものを、三次元CG@七葉から拝借し、Blenderにコンバートしたものを加工しました。毎度お世話になっております。

DAE.as使ってBlenderで作成したモーションデータの読み込みを模索中。
かれこれ2週間くらい、仕事の合間をかい潜ってチマチマ調査をしてみたんだけど、どうにもBlenderを使ったモーションデータを効率良くColladaへ変換する決め手になる方法が見つからない。Collada plug-in for Blenderがかなり信用ならないのと、おそらくBlenderでは動作確認してないであろう、ASColladaの挙動に振り回されて、PythonのコードとAS3.0のコードを行ったり来たりしつつ、相当遠回りしてどうにか形になったのが上記のデモ。

一番参ったのは、1つめから7つめまでのキーフレームが無視されるというASColladaの謎挙動。とりあえずダミーのキーフレームを7つ打っておくというバカバカしい方法で対処。Collada plug-in for Blenderが吐くdaeが悪い可能性が高いけど、現象を把握するのにかなり苦労した。あと、キーフレーム間の補間が実装されたのはスバラシイんだけど、少ないキーフレームで大きい動きを付けようとすると妙な補間をするので、様子を見ながらキーフレームの間隔を微調整。他にもルートボーンが複数あるとダメとか、いろいろあった気がするんだけど全然整理できてない。

ただでさえ労力のかかるモーション付けを、PV3Dで扱える条件を考慮しながらやるのはかなりキツい。効率を要求される場合、現時点では「FlexSDK + Blender」という最強低コスト環境では太刀打ちできそうにない。だからといってハイエンド3Dソフトを使うのが最適解ってのも釈然としないのでもうちょっとがんばってみたい。ShockWave3Dが作り手に普及しなかったのは間違いなくこの部分だと思うし。そういやDirector11出るんだなぁ。Directorだけの出費で済むなら買うのに…w3d形式以外の選択肢があればなぁ。とか思う今日この頃。

関連する投稿

Trackback URL : http://blog.r3c7.net/wp-trackback.php?p=160

コメント / トラックバック5件

  1. WOWEngineで、ミクとリンが跳梁跋扈!!…

    WOWEngineという、ActionScript3.0で使える3D物理エンジンを、

    2D平面の中での物理演算フレームワークはAPEとか、Box2DFlashAS3と (more…)

  2. Konstantinos より:

    Hello rect,

    All of your examples are great, it seems that you have a thorough background in more classic programming languages like OpenGL.

    The sad thing is that you don’t write yout comments in English, I know that it may be a hard job for you, but this is one good way to practice your English. ;-)
    Furthermore, since Papervision3D is based on opensource and on building knowledge from other members, and I am sure you have benefited from this as well, it would be great if you can give back to this community and share the knowledge with others (us). Unfortunately English is the only way to do this.

    Cheers,

    Konstantinos

  3. rect より:

    Konstantinos,

    >it seems that you have a thorough background in more classic programming languages like OpenGL.

    You’re overestimating.
    3Dprogramming study was begun taking advantage of Papervision3D. That is, I am an entire amateur.

    I respect your opinion, I agree with you, but it cannot carry out immediately, I want you to wait without haste.

  4. Bartek より:

    Great job! I started to use Blender not a long ago, but so far I did only basic stuff, and this is truly inspiring. My biggest problem with PV3D is performance – as soon as I export something a little bit more complex from Blender it becomes super slow in Flash…

    @Konstantinos – I use Google Translate to red this blog :) it isn’t perfect, but it will give you a good idea what the posts are about.

  5. Fassa より:

    Mate unfortunately i do not speak japanese aswell but could you post the source for this ? I somehow couldnt run the animations so i want to see how do you acomplish that

コメントをどうぞ

Powered by WP Hashcash