LoginSignup
0
1

More than 5 years have passed since last update.

PhysX Maya(Plane) → UE4 #UE4Study

Last updated at Posted at 2017-03-02

APEX Clothing Maya → UE4

PhysX plug-in for Mayaについて

公式ドキュメント
http://physxinfo.com/wiki/PhysX_plug-in_for_Maya

Maya DCC plug-in for PhysX のダウンロードとインストール

ダウンロード(アカウントの作成が必要)
https://developer.nvidia.com/gameworksdownload

現在(2017/03/02時点の最新)PhysX: Maya DCC plug-in for PhysX 3-4-0

自分が使用しているMayaのバージョンのインストーラーを選択して、インストールする

MayaのPlugin ManagerでPluginを有効にする

Mayaを起動する
PluginManagerからphysx.mllの自動ロード ロードにチェック
image

Mayaを再起動する
dialogはYesをクリック
image

PhysXのメニューが表示される
image

PlaneをClothにする

Planeを作成して、Create Clothingを実行(エラー)

  1. Planeを作成する
  2. Planeを選択する
  3. PhysX -> PhysX Clothing -> Create Clothing

skinning deformerを持っていないため、PlaneをClothにすることが出来ない
image

Joint作成ツールを選択する
image

Jointを作成する
image

Skin -> Bind
(画像は旗にしようとして失敗してしまったので、気が向いたら差し替える)
image

再度 Create Clothingを実行する
1. Planeを選択する
2. PhysX -> PhysX Clothing -> Create Clothing
(画像は旗にしようとして失敗してしまったので、気が向いたら差し替える)

image

Weight調整

image

左側のペイントツール:Weightの影響どのように受けるかグラデーションを作る([影響なし]紫~白[影響大])
右側のマテリアル設定:Clothのプロパティを設定する。(重力、伸縮、剛柔など)

PysXタブにある再生ボタンをクリックすると現在の設定のClothの動きを確認することが出来る
image

APEXファイル(拡張子は.apx)の書き出し

Clothが思い通りの動きをするようになったら、UE4に持っていくClothデータのAPXファイルを書き出す

image

image

image

FBXファイルの書き出し

FBXファイルを書き出す

UnrealにPhysX情報を反映させる

FBXファイルをインポートする
Mesh情報をダブルクリックしてエディタを開く
image

Clothingカテゴリにある
[Add APEX Clothing file...]をクリック

image

Mayaで書き出したAPEXファイルを選択する
image

LODカテゴリのマテリアルのClothingに追加したAPEXファイルを設定する
image

Mayaで設定したClothのシミュレーションがUnrealで再現される
Unreal側で設定値を後から変更することもできる
image

画面に追加して、Clothの動きを確認する
image

風(Wind Directional Source)を追加する

image

Rotationで風向
Speed,Strengthで風力が設定できる

image

参照

Autodesk Maya 2012 デモンストレーション 06
https://www.youtube.com/watch?v=PqwgBKsD6FQ

【UE4】MayaLT2017でphysXを使って服を揺らす
http://shop-0761.hatenablog.com/entry/2016/09/14/010618

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1